Method: JSONAPI::ResourceFragment#add_attribute
- Defined in:
- lib/jsonapi/resource_fragment.rb
#add_attribute(name, value) ⇒ Object
43 44 45 |
# File 'lib/jsonapi/resource_fragment.rb', line 43 def add_attribute(name, value) @attributes[name] = value end |