Class: ActiveModel::Serializer::Association
- Defined in:
- lib/active_model/serializer/association.rb
Overview
This class holds all information about serializer’s association.
Instance Attribute Summary collapse
-
#name ⇒ Symbol
The current value of name.
-
#options ⇒ Hash{Symbol => Object}
The current value of options.
Attributes inherited from Field
Method Summary
Methods inherited from Field
#excluded?, #initialize, #value
Constructor Details
This class inherits a constructor from ActiveModel::Serializer::Field
Instance Attribute Details
#name ⇒ Symbol
Returns the current value of name.
12 13 14 |
# File 'lib/active_model/serializer/association.rb', line 12 def name @name end |
#options ⇒ Hash{Symbol => Object}
Returns the current value of options.
12 13 14 |
# File 'lib/active_model/serializer/association.rb', line 12 def @options end |