Class: Pokepay::Response::Cashtray
- Inherits:
-
Object
- Object
- Pokepay::Response::Cashtray
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/cashtray.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#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.
Instance Method Summary collapse
-
#initialize(row) ⇒ Cashtray
constructor
A new instance of Cashtray.
Constructor Details
#initialize(row) ⇒ Cashtray
Returns a new instance of Cashtray.
7 8 9 10 11 12 13 14 15 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 7 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"] end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
19 20 21 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 19 def account @account end |
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
17 18 19 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 17 def amount @amount end |
#canceled_at ⇒ Object (readonly)
Returns the value of attribute canceled_at.
21 22 23 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 21 def canceled_at @canceled_at end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
18 19 20 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 18 def description @description end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
20 21 22 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 20 def expires_at @expires_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
16 17 18 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 16 def id @id end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
22 23 24 |
# File 'lib/pokepay_partner_ruby_sdk/response/cashtray.rb', line 22 def token @token end |