Class: LWS::Auth::Device

Inherits:
Generic::Model show all
Defined in:
lib/lws/auth.rb

Overview

The device class

This class is a nested/associated class of Account or Token only! It cannot be accessed directly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Device

Returns a new instance of Device.



203
204
205
# File 'lib/lws/auth.rb', line 203

def initialize(attrs = {})
  super
end

Instance Attribute Details

#accountAccount

Returns the account that the device belongs to.

Returns:

  • (Account)

    the account that the device belongs to



192
# File 'lib/lws/auth.rb', line 192

belongs_to :account

#account_idFixnum

Returns the ID of the account that the device belongs to.

Returns:

  • (Fixnum)

    the ID of the account that the device belongs to



# File 'lib/lws/auth.rb', line 194

#created_atString

Returns the timestamp of when the device was created.

Returns:

  • (String)

    the timestamp of when the device was created



# File 'lib/lws/auth.rb', line 197

#idFixnum (readonly)

Returns the (unique) ID of the device.

Returns:

  • (Fixnum)

    the (unique) ID of the device



# File 'lib/lws/auth.rb', line 184

#nameString

Returns the name of the device.

Returns:

  • (String)

    the name of the device



# File 'lib/lws/auth.rb', line 187

#updated_atString

Returns the timestamp of when the device was last updated.

Returns:

  • (String)

    the timestamp of when the device was last updated



203
204
205
# File 'lib/lws/auth.rb', line 203

def initialize(attrs = {})
  super
end