Class: Pokepay::Response::AccountDetail
- Inherits:
-
Object
- Object
- Pokepay::Response::AccountDetail
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/account_detail.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#external_id ⇒ Object
readonly
Returns the value of attribute external_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_suspended ⇒ Object
readonly
Returns the value of attribute is_suspended.
-
#money_balance ⇒ Object
readonly
Returns the value of attribute money_balance.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#point_balance ⇒ Object
readonly
Returns the value of attribute point_balance.
-
#point_debt ⇒ Object
readonly
Returns the value of attribute point_debt.
-
#private_money ⇒ Object
readonly
Returns the value of attribute private_money.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(row) ⇒ AccountDetail
constructor
A new instance of AccountDetail.
Constructor Details
#initialize(row) ⇒ AccountDetail
Returns a new instance of AccountDetail.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 8 def initialize(row) @id = row["id"] @name = row["name"] @is_suspended = row["is_suspended"] @status = row["status"] @balance = row["balance"] @money_balance = row["money_balance"] @point_balance = row["point_balance"] @point_debt = row["point_debt"] @private_money = PrivateMoney.new(row["private_money"]) @user = User.new(row["user"]) @external_id = row["external_id"] end |
Instance Attribute Details
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
25 26 27 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 25 def balance @balance end |
#external_id ⇒ Object (readonly)
Returns the value of attribute external_id.
31 32 33 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 31 def external_id @external_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
21 22 23 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 21 def id @id end |
#is_suspended ⇒ Object (readonly)
Returns the value of attribute is_suspended.
23 24 25 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 23 def is_suspended @is_suspended end |
#money_balance ⇒ Object (readonly)
Returns the value of attribute money_balance.
26 27 28 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 26 def money_balance @money_balance end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 22 def name @name end |
#point_balance ⇒ Object (readonly)
Returns the value of attribute point_balance.
27 28 29 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 27 def point_balance @point_balance end |
#point_debt ⇒ Object (readonly)
Returns the value of attribute point_debt.
28 29 30 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 28 def point_debt @point_debt end |
#private_money ⇒ Object (readonly)
Returns the value of attribute private_money.
29 30 31 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 29 def private_money @private_money end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
24 25 26 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 24 def status @status end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
30 31 32 |
# File 'lib/pokepay_partner_ruby_sdk/response/account_detail.rb', line 30 def user @user end |