Class: Pokepay::Response::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (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_suspendedObject (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

#nameObject (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_moneyObject (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

#statusObject (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