Class: JsonapiMapper::Resource

Inherits:
Struct
  • Object
show all
Defined in:
lib/jsonapi_mapper.rb

Instance Attribute Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



16
17
18
# File 'lib/jsonapi_mapper.rb', line 16

def id
  @id
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



16
17
18
# File 'lib/jsonapi_mapper.rb', line 16

def object
  @object
end

#relationshipsObject

Returns the value of attribute relationships

Returns:

  • (Object)

    the current value of relationships



16
17
18
# File 'lib/jsonapi_mapper.rb', line 16

def relationships
  @relationships
end