Class: Pokepay::Response::UserDevice
- Inherits:
-
Object
- Object
- Pokepay::Response::UserDevice
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/user_device.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_active ⇒ Object
readonly
Returns the value of attribute is_active.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(row) ⇒ UserDevice
constructor
A new instance of UserDevice.
Constructor Details
#initialize(row) ⇒ UserDevice
Returns a new instance of UserDevice.
7 8 9 10 11 12 |
# File 'lib/pokepay_partner_ruby_sdk/response/user_device.rb', line 7 def initialize(row) @id = row["id"] @user = User.new(row["user"]) @is_active = row["is_active"] @metadata = row["metadata"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/pokepay_partner_ruby_sdk/response/user_device.rb', line 13 def id @id end |
#is_active ⇒ Object (readonly)
Returns the value of attribute is_active.
15 16 17 |
# File 'lib/pokepay_partner_ruby_sdk/response/user_device.rb', line 15 def is_active @is_active end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
16 17 18 |
# File 'lib/pokepay_partner_ruby_sdk/response/user_device.rb', line 16 def @metadata end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
14 15 16 |
# File 'lib/pokepay_partner_ruby_sdk/response/user_device.rb', line 14 def user @user end |