Method: Unit::UnitResource#initialize
- Defined in:
- lib/unit/models/unit_resource.rb
#initialize(id, type, attributes, relationships) ⇒ UnitResource
Returns a new instance of UnitResource.
13 14 15 16 17 18 |
# File 'lib/unit/models/unit_resource.rb', line 13 def initialize(id, type, attributes, relationships) @id = id @type = type @attributes = attributes @relationships = relationships end |