lib/jsonapi_compliable/deserializer.rb in jsonapi_compliable-0.6.5 vs lib/jsonapi_compliable/deserializer.rb in jsonapi_compliable-0.6.6

- old
+ new

@@ -67,9 +67,15 @@ @attributes ||= raw_attributes.tap do |hash| hash.merge!(id: id) if id end end + # Override the attributes + # # @see #attributes + def attributes=(attrs) + @attributes = attrs + end + # 'meta' information about this resource. Includes: # # +type+: the jsonapi type # +method+: create/update/destroy/disassociate. Based on the request env or the +method+ within the +relationships+ hash # +temp_id+: the +temp-id+, if specified