Class: ActiveModel::Serializer::HasOneReflection Private

Inherits:
SingularReflection show all
Defined in:
lib/active_model/serializer/has_one_reflection.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes inherited from Field

#block, #name, #options

Instance Method Summary (collapse)

Methods inherited from Reflection

#build_association, #include_data, #initialize, #link, #meta, #value

Constructor Details

This class inherits a constructor from ActiveModel::Serializer::Reflection

Instance Method Details

- (Object) macro

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



5
6
7
# File 'lib/active_model/serializer/has_one_reflection.rb', line 5

def macro
  :has_one
end