Class: Pokepay::Response::AccountWithUser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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

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

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