Class: ChargingInformation
- Inherits:
-
Object
- Object
- ChargingInformation
- Defined in:
- lib/response/payment/ChargingInformation.rb
Instance Method Summary collapse
- #getAmount ⇒ Object
- #getCurrency ⇒ Object
- #getDescription ⇒ Object
-
#initialize ⇒ ChargingInformation
constructor
A new instance of ChargingInformation.
- #initializeJSON(jsondict) ⇒ Object
- #setAmount(amount) ⇒ Object
- #setCurrency(currency) ⇒ Object
- #setDescription(description) ⇒ Object
Constructor Details
#initialize ⇒ ChargingInformation
Returns a new instance of ChargingInformation.
4 5 6 7 8 |
# File 'lib/response/payment/ChargingInformation.rb', line 4 def initialize @amount=0.0 @currency=nil @description=nil end |
Instance Method Details
#getAmount ⇒ Object
25 26 27 |
# File 'lib/response/payment/ChargingInformation.rb', line 25 def getAmount @amount end |
#getCurrency ⇒ Object
33 34 35 |
# File 'lib/response/payment/ChargingInformation.rb', line 33 def getCurrency @currency end |
#getDescription ⇒ Object
41 42 43 |
# File 'lib/response/payment/ChargingInformation.rb', line 41 def getDescription @description end |
#initializeJSON(jsondict) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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) ⇒ Object
29 30 31 |
# File 'lib/response/payment/ChargingInformation.rb', line 29 def setAmount(amount) @amount=amount end |
#setCurrency(currency) ⇒ Object
37 38 39 |
# File 'lib/response/payment/ChargingInformation.rb', line 37 def setCurrency(currency) @currency=currency end |
#setDescription(description) ⇒ Object
45 46 47 |
# File 'lib/response/payment/ChargingInformation.rb', line 45 def setDescription(description) @description=description end |