Class: ChargingInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/response/payment/ChargingInformation.rb

Instance Method Summary collapse

Constructor Details

#initializeChargingInformation

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

#getAmountObject



25
26
27
# File 'lib/response/payment/ChargingInformation.rb', line 25

def getAmount
  @amount
end

#getCurrencyObject



33
34
35
# File 'lib/response/payment/ChargingInformation.rb', line 33

def getCurrency
  @currency
end

#getDescriptionObject



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