Class: Pokepay::Response::Account
- Inherits:
-
Object
- Object
- Pokepay::Response::Account
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/account.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_suspended ⇒ Object
readonly
Returns the value of attribute is_suspended.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#private_money ⇒ Object
readonly
Returns the value of attribute private_money.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(row) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(row) ⇒ Account
Returns a new instance of Account.
7 8 9 10 11 12 13 |
# File 'lib/pokepay_partner_ruby_sdk/response/account.rb', line 7 def initialize(row) @id = row["id"] @name = row["name"] @is_suspended = row["is_suspended"] @status = row["status"] @private_money = PrivateMoney.new(row["private_money"]) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
14 15 16 |
# File 'lib/pokepay_partner_ruby_sdk/response/account.rb', line 14 def id @id end |
#is_suspended ⇒ Object (readonly)
Returns the value of attribute is_suspended.
16 17 18 |
# File 'lib/pokepay_partner_ruby_sdk/response/account.rb', line 16 def is_suspended @is_suspended end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/pokepay_partner_ruby_sdk/response/account.rb', line 15 def name @name end |
#private_money ⇒ Object (readonly)
Returns the value of attribute private_money.
18 19 20 |
# File 'lib/pokepay_partner_ruby_sdk/response/account.rb', line 18 def private_money @private_money end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
17 18 19 |
# File 'lib/pokepay_partner_ruby_sdk/response/account.rb', line 17 def status @status end |