Class: Pokepay::Response::Bill
- Inherits:
-
Object
- Object
- Pokepay::Response::Bill
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/bill.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_disabled ⇒ Object
readonly
Returns the value of attribute is_disabled.
-
#max_amount ⇒ Object
readonly
Returns the value of attribute max_amount.
-
#min_amount ⇒ Object
readonly
Returns the value of attribute min_amount.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(row) ⇒ Bill
constructor
A new instance of Bill.
Constructor Details
#initialize(row) ⇒ Bill
Returns a new instance of Bill.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 7 def initialize(row) @id = row["id"] @amount = row["amount"] @max_amount = row["max_amount"] @min_amount = row["min_amount"] @description = row["description"] @account = AccountWithUser.new(row["account"]) @is_disabled = row["is_disabled"] @token = row["token"] end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
22 23 24 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 22 def account @account end |
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
18 19 20 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 18 def amount @amount end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
21 22 23 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 21 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
17 18 19 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 17 def id @id end |
#is_disabled ⇒ Object (readonly)
Returns the value of attribute is_disabled.
23 24 25 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 23 def is_disabled @is_disabled end |
#max_amount ⇒ Object (readonly)
Returns the value of attribute max_amount.
19 20 21 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 19 def max_amount @max_amount end |
#min_amount ⇒ Object (readonly)
Returns the value of attribute min_amount.
20 21 22 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 20 def min_amount @min_amount end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
24 25 26 |
# File 'lib/pokepay_partner_ruby_sdk/response/bill.rb', line 24 def token @token end |