Class: JsonApiClient::Link
- Inherits:
-
Object
- Object
- JsonApiClient::Link
- Defined in:
- lib/json_api_client/link.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, spec) ⇒ Link
constructor
A new instance of Link.
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
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/json_api_client/link.rb', line 3 def type @type end |