Class: ModernPricing::Resource
- Inherits:
-
Object
- Object
- ModernPricing::Resource
- Defined in:
- lib/modern-pricing/resource.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#rels ⇒ Object
readonly
Returns the value of attribute rels.
Instance Method Summary collapse
-
#initialize(client, data) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(client, data) ⇒ Resource
Returns a new instance of Resource.
6 7 8 9 |
# File 'lib/modern-pricing/resource.rb', line 6 def initialize(client, data) @client = client @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/modern-pricing/resource.rb', line 4 def data @data end |
#rels ⇒ Object (readonly)
Returns the value of attribute rels.
4 5 6 |
# File 'lib/modern-pricing/resource.rb', line 4 def rels @rels end |