Class: Beatport::Price

Inherits:
Money
  • Object
show all
Defined in:
lib/beatport/price.rb

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Price

Returns a new instance of Price.



26
27
28
# File 'lib/beatport/price.rb', line 26

def initialize(data = {})
  super(data['value'] || 0, data['code'])
end