class ChargingInformation
Public Class Methods
new()
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 4 def initialize @amount=0.0 @currency=nil @description=nil end
Public Instance Methods
getAmount()
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 25 def getAmount @amount end
getCurrency()
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 33 def getCurrency @currency end
getDescription()
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 41 def getDescription @description end
initializeJSON(jsondict)
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 10 def initializeJSON(jsondict) @amount=0.0 if (jsondict!=nil) && (jsondict.has_key?'amount') && (jsondict['amount']!=nil) @amount=jsondict['amount'].to_f end @currency=nil if (jsondict!=nil) && (jsondict.has_key?'currency') && (jsondict['currency']!=nil) @currency=jsondict['currency'] end @description=nil if (jsondict!=nil) && (jsondict.has_key?'description') && (jsondict['description']!=nil) @description=jsondict['description'] end end
setAmount(amount)
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 29 def setAmount(amount) @amount=amount end
setCurrency(currency)
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 37 def setCurrency(currency) @currency=currency end
setDescription(description)
click to toggle source
# File lib/response/payment/ChargingInformation.rb, line 45 def setDescription(description) @description=description end