Class: Pokepay::Response::CashtrayWithResult
- Inherits:
-
Object
- Object
- Pokepay::Response::CashtrayWithResult
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#canceled_at ⇒ Object
readonly
Returns the value of attribute canceled_at.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize(row) ⇒ CashtrayWithResult
constructor
A new instance of CashtrayWithResult.
Constructor Details
#initialize(row) ⇒ CashtrayWithResult
Returns a new instance of CashtrayWithResult.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 9 def initialize(row) @id = row["id"] @amount = row["amount"] @description = row["description"] @account = AccountWithUser.new(row["account"]) @expires_at = row["expires_at"] @canceled_at = row["canceled_at"] @token = row["token"] @attempt = row["attempt"] and CashtrayAttempt.new(row["attempt"]) @transaction = row["transaction"] and Transaction.new(row["transaction"]) end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
23 24 25 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 23 def account @account end |
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
21 22 23 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 21 def amount @amount end |
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt.
27 28 29 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 27 def attempt @attempt end |
#canceled_at ⇒ Object (readonly)
Returns the value of attribute canceled_at.
25 26 27 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 25 def canceled_at @canceled_at end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
22 23 24 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 22 def description @description end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
24 25 26 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 24 def expires_at @expires_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
20 21 22 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 20 def id @id end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
26 27 28 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 26 def token @token end |
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction.
28 29 30 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray_with_result.rb', line 28 def transaction @transaction end |