Class: SimpleJsonApi::Association
- Inherits:
-
Struct
- Object
- Struct
- SimpleJsonApi::Association
- Defined in:
- lib/simple_json_api/association.rb
Overview
Wrapper for an included association
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#polymorphic ⇒ Object
Returns the value of attribute polymorphic.
-
#serializer ⇒ Object
Returns the value of attribute serializer.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
4 5 6 |
# File 'lib/simple_json_api/association.rb', line 4 def key @key end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/simple_json_api/association.rb', line 4 def name @name end |
#polymorphic ⇒ Object
Returns the value of attribute polymorphic
4 5 6 |
# File 'lib/simple_json_api/association.rb', line 4 def polymorphic @polymorphic end |
#serializer ⇒ Object
Returns the value of attribute serializer
4 5 6 |
# File 'lib/simple_json_api/association.rb', line 4 def serializer @serializer end |
#type ⇒ Object
Returns the value of attribute type
4 5 6 |
# File 'lib/simple_json_api/association.rb', line 4 def type @type end |
Instance Method Details
#plural_name ⇒ Object
12 13 14 |
# File 'lib/simple_json_api/association.rb', line 12 def plural_name name.pluralize end |