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