Class: Pokepay::Response::AccountDetail

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#balanceObject (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_idObject (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

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

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

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

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