Class: LWS::Auth::Device

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/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 Attribute Details

#accountAccount

Returns the account that the device belongs to.

Returns:

  • (Account)

    the account that the device belongs to



310
# File 'lib/lws/apps/auth.rb', line 310

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



314
# File 'lib/lws/apps/auth.rb', line 314

attribute :account_id

#created_atString (readonly)

Returns the timestamp of when the device was created.

Returns:

  • (String)

    the timestamp of when the device was created



326
# File 'lib/lws/apps/auth.rb', line 326

attribute :created_at

#idFixnum (readonly)

Returns the (unique) ID of the device.

Returns:

  • (Fixnum)

    the (unique) ID of the device



306
# File 'lib/lws/apps/auth.rb', line 306

attribute :id

#nameString

Returns the name of the device.

Returns:

  • (String)

    the name of the device



318
# File 'lib/lws/apps/auth.rb', line 318

attribute :name

#tokensArray<Token>

Returns the tokens available for the device.

Returns:

  • (Array<Token>)

    the tokens available for the device



322
# File 'lib/lws/apps/auth.rb', line 322

attribute :tokens

#updated_atString (readonly)

Returns the timestamp of when the device was last updated.

Returns:

  • (String)

    the timestamp of when the device was last updated



330
# File 'lib/lws/apps/auth.rb', line 330

attribute :updated_at