Class: ActiveModel::Serializer::Association
- Inherits:
-
Struct
- Object
- Struct
- ActiveModel::Serializer::Association
- Defined in:
- lib/active_model/serializer/association.rb
Overview
This class hold all information about serializer's association.
Instance Attribute Summary (collapse)
-
- (Object) links
Returns the value of attribute links.
-
- (Object) meta
Returns the value of attribute meta.
-
- (Symbol) name
The current value of name.
-
- (Hash{Symbol => Object}) options
The current value of options.
-
- (ActiveModel::Serializer) serializer
The current value of serializer.
Instance Attribute Details
- (Object) links
Returns the value of attribute links
12 13 14 |
# File 'lib/active_model/serializer/association.rb', line 12 def links @links end |
- (Object) meta
Returns the value of attribute meta
12 13 14 |
# File 'lib/active_model/serializer/association.rb', line 12 def @meta end |
- (Symbol) name
Returns the current value of name
12 13 14 |
# File 'lib/active_model/serializer/association.rb', line 12 def name @name end |
- (Hash{Symbol => Object}) options
Returns the current value of options
12 13 14 |
# File 'lib/active_model/serializer/association.rb', line 12 def @options end |
- (ActiveModel::Serializer) serializer
Returns the current value of serializer
12 13 14 |
# File 'lib/active_model/serializer/association.rb', line 12 def serializer @serializer end |