Class: Pokepay::Response::AdminUserWithShopsAndPrivateMoneys

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ AdminUserWithShopsAndPrivateMoneys

Returns a new instance of AdminUserWithShopsAndPrivateMoneys.



7
8
9
10
11
12
13
14
15
16
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 7

def initialize(row)
  @id = row["id"]
  @role = row["role"]
  @email = row["email"]
  @name = row["name"]
  @is_active = row["is_active"]
  @organization = Organization.new(row["organization"])
  @shops = row["shops"]
  @private_moneys = row["private_moneys"]
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



19
20
21
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 19

def email
  @email
end

#idObject (readonly)

Returns the value of attribute id.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 17

def id
  @id
end

#is_activeObject (readonly)

Returns the value of attribute is_active.



21
22
23
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 21

def is_active
  @is_active
end

#nameObject (readonly)

Returns the value of attribute name.



20
21
22
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 20

def name
  @name
end

#organizationObject (readonly)

Returns the value of attribute organization.



22
23
24
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 22

def organization
  @organization
end

#private_moneysObject (readonly)

Returns the value of attribute private_moneys.



24
25
26
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 24

def private_moneys
  @private_moneys
end

#roleObject (readonly)

Returns the value of attribute role.



18
19
20
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 18

def role
  @role
end

#shopsObject (readonly)

Returns the value of attribute shops.



23
24
25
# File 'lib/pokepay_partner_ruby_sdk/response/admin_user_with_shops_and_private_moneys.rb', line 23

def shops
  @shops
end