Class: Thanos::Price
- Inherits:
-
Object
- Object
- Thanos::Price
- Defined in:
- lib/thanos/resources/price.rb
Instance Attribute Summary collapse
-
#price ⇒ Object
readonly
Returns the value of attribute price.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ Price
constructor
A new instance of Price.
Constructor Details
#initialize(data) ⇒ Price
Returns a new instance of Price.
5 6 7 8 |
# File 'lib/thanos/resources/price.rb', line 5 def initialize(data) @type = data['type'] @price = data['price'] end |
Instance Attribute Details
#price ⇒ Object (readonly)
Returns the value of attribute price.
3 4 5 |
# File 'lib/thanos/resources/price.rb', line 3 def price @price end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/thanos/resources/price.rb', line 3 def type @type end |