class Kempelen::API::Common::Price
Attributes
amount[RW]
currency_code[RW]
Public Class Methods
create_from_response(response)
click to toggle source
# File lib/kempelen/API/common/price.rb, line 13 def self.create_from_response(response) return nil if response.nil? price = Price.new price.amount = response["Amount"].to_f price.currency_code = response["CurrencyCode"] price end
new(amount = 0.0, currency_code = "USD")
click to toggle source
# File lib/kempelen/API/common/price.rb, line 8 def initialize(amount = 0.0, currency_code = "USD") @amount = amount @currency_code = currency_code end