Class: Pokepay::Response::User
- Inherits:
-
Object
- Object
- Pokepay::Response::User
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/user.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_merchant ⇒ Object
readonly
Returns the value of attribute is_merchant.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(row) ⇒ User
constructor
A new instance of User.
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
#id ⇒ Object (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_merchant ⇒ Object (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 |
#name ⇒ Object (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 |