Class: Thanos::Price

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/resources/price.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#priceObject (readonly)

Returns the value of attribute price.



3
4
5
# File 'lib/thanos/resources/price.rb', line 3

def price
  @price
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/thanos/resources/price.rb', line 3

def type
  @type
end