Class: Pokepay::Response::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ User

Returns a new instance of User.



6
7
8
9
10
# File 'lib/pokepay_partner_ruby_sdk/response/user.rb', line 6

def initialize(row)
  @id = row["id"]
  @name = row["name"]
  @is_merchant = row["is_merchant"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/pokepay_partner_ruby_sdk/response/user.rb', line 11

def id
  @id
end

#is_merchantObject (readonly)

Returns the value of attribute is_merchant.



13
14
15
# File 'lib/pokepay_partner_ruby_sdk/response/user.rb', line 13

def is_merchant
  @is_merchant
end

#nameObject (readonly)

Returns the value of attribute name.



12
13
14
# File 'lib/pokepay_partner_ruby_sdk/response/user.rb', line 12

def name
  @name
end