Class: Marver::Price

Inherits:
Object
  • Object
show all
Defined in:
lib/marver/entities/price.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Price

Returns a new instance of Price.



5
6
7
8
# File 'lib/marver/entities/price.rb', line 5

def initialize(json)
  @type = json['type']
  @price = json['price']
end

Instance Attribute Details

#priceObject (readonly)

Returns the value of attribute price.



3
4
5
# File 'lib/marver/entities/price.rb', line 3

def price
  @price
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/marver/entities/price.rb', line 3

def type
  @type
end