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

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#accountAccount

Returns the account that the device belongs to.

Returns:

  • (Account)

    the account that the device belongs to



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

belongs_to :account

#account_idInteger

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

Returns:

  • (Integer)

    the ID of the account that the device belongs to



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

attribute :account_id

#nameString

Returns the name of the device.

Returns:

  • (String)

    the name of the device



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

attribute :name

#tokensArray<Token>

Returns the tokens available for the device.

Returns:

  • (Array<Token>)

    the tokens available for the device



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

attribute :tokens