Class: JsonApiClient::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/json_api_client/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, spec) ⇒ Link

Returns a new instance of Link.



5
6
7
8
# File 'lib/json_api_client/link.rb', line 5

def initialize(type, spec)
  @type = type
  @spec = spec
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/json_api_client/link.rb', line 3

def type
  @type
end