Class: ActiveModel::Serializer::Field
- Inherits:
-
Struct
- Object
- Struct
- ActiveModel::Serializer::Field
- Defined in:
- lib/active_model/serializer/field.rb
Overview
Holds all the meta-data about a field (i.e. attribute or association) as it was specified in the ActiveModel::Serializer class. Notice that the field block is evaluated in the context of the serializer.
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) block
Returns the value of attribute block.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) options
Returns the value of attribute options.
Instance Attribute Details
- (Object) block
Returns the value of attribute block
6 7 8 |
# File 'lib/active_model/serializer/field.rb', line 6 def block @block end |
- (Object) name
Returns the value of attribute name
6 7 8 |
# File 'lib/active_model/serializer/field.rb', line 6 def name @name end |
- (Object) options
Returns the value of attribute options
6 7 8 |
# File 'lib/active_model/serializer/field.rb', line 6 def @options end |