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