Class: AmountResponse
- Inherits:
-
Object
- Object
- AmountResponse
- Defined in:
- lib/response/payment/AmountResponse.rb
Instance Method Summary collapse
- #getAmountTransaction ⇒ Object
- #getContentType ⇒ Object
- #getHTTPResponseCode ⇒ Object
- #getLocation ⇒ Object
-
#initialize ⇒ AmountResponse
constructor
A new instance of AmountResponse.
- #setAmountTransaction(amountTransaction) ⇒ Object
- #setAmountTransactionJSON(jsondata) ⇒ Object
- #setContentType(contentType) ⇒ Object
- #setHTTPResponseCode(httpResponseCode) ⇒ Object
- #setLocation(location) ⇒ Object
Constructor Details
#initialize ⇒ AmountResponse
Returns a new instance of AmountResponse.
5 6 7 8 9 10 |
# File 'lib/response/payment/AmountResponse.rb', line 5 def initialize @httpResponseCode=0 @contentType=nil @location=nil @amountTransaction=nil end |
Instance Method Details
#getAmountTransaction ⇒ Object
36 37 38 |
# File 'lib/response/payment/AmountResponse.rb', line 36 def getAmountTransaction @amountTransaction end |
#getContentType ⇒ Object
20 21 22 |
# File 'lib/response/payment/AmountResponse.rb', line 20 def getContentType @contentType end |
#getHTTPResponseCode ⇒ Object
12 13 14 |
# File 'lib/response/payment/AmountResponse.rb', line 12 def getHTTPResponseCode @httpResponseCode end |
#getLocation ⇒ Object
28 29 30 |
# File 'lib/response/payment/AmountResponse.rb', line 28 def getLocation @location end |
#setAmountTransaction(amountTransaction) ⇒ Object
40 41 42 |
# File 'lib/response/payment/AmountResponse.rb', line 40 def setAmountTransaction(amountTransaction) @amountTransaction=amountTransaction end |
#setAmountTransactionJSON(jsondata) ⇒ Object
44 45 46 47 |
# File 'lib/response/payment/AmountResponse.rb', line 44 def setAmountTransactionJSON(jsondata) @amountTransaction=AmountTransaction.new @amountTransaction.initializeJSON(jsondata) end |
#setContentType(contentType) ⇒ Object
24 25 26 |
# File 'lib/response/payment/AmountResponse.rb', line 24 def setContentType(contentType) @contentType=contentType end |
#setHTTPResponseCode(httpResponseCode) ⇒ Object
16 17 18 |
# File 'lib/response/payment/AmountResponse.rb', line 16 def setHTTPResponseCode(httpResponseCode) @httpResponseCode=httpResponseCode end |
#setLocation(location) ⇒ Object
32 33 34 |
# File 'lib/response/payment/AmountResponse.rb', line 32 def setLocation(location) @location=location end |