Class: Pokepay::Response::UserDevice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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

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