Class: JsonapiMapper::Resource
- Inherits:
-
Struct
- Object
- Struct
- JsonapiMapper::Resource
- Defined in:
- lib/jsonapi_mapper.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#object ⇒ Object
Returns the value of attribute object.
-
#relationships ⇒ Object
Returns the value of attribute relationships.
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
16 17 18 |
# File 'lib/jsonapi_mapper.rb', line 16 def id @id end |
#object ⇒ Object
Returns the value of attribute object
16 17 18 |
# File 'lib/jsonapi_mapper.rb', line 16 def object @object end |
#relationships ⇒ Object
Returns the value of attribute relationships
16 17 18 |
# File 'lib/jsonapi_mapper.rb', line 16 def relationships @relationships end |