Class: LWS::Auth::Account

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

Overview

The account class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Account

Returns a new instance of Account.



81
82
83
# File 'lib/lws/auth.rb', line 81

def initialize(attrs = {})
  super
end

Instance Attribute Details

#appsArray<App>

Returns the apps that are assigned to the account.

Returns:

  • (Array<App>)

    the apps that are assigned to the account



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

has_many :apps

#avatar_urlString

Returns the avatar URL of the account.

Returns:

  • (String)

    the avatar URL of the account



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


#companyCompany

Returns the company that the account belongs to.

Returns:

  • (Company)

    the company that the account belongs to



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

belongs_to :company

#company_idFixnum

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

Returns:

  • (Fixnum)

    the ID of the company that the account belongs to



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


#created_atString

Returns the timestamp of when the account was created.

Returns:

  • (String)

    the timestamp of when the account was created



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


#devicesArray<Device>

Returns the devices that are assigned to the account.

Returns:

  • (Array<Device>)

    the devices that are assigned to the account



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

has_many :devices

#idFixnum (readonly)

Returns the (unique) ID of the account.

Returns:

  • (Fixnum)

    the (unique) ID of the account



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


#languageString

Returns the language of the account.

Returns:

  • (String)

    the language of the account



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


#nameString

Returns the name of the account.

Returns:

  • (String)

    the name of the account



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


#updated_atString

Returns the timestamp of when the account was last updated.

Returns:

  • (String)

    the timestamp of when the account was last updated



81
82
83
# File 'lib/lws/auth.rb', line 81

def initialize(attrs = {})
  super
end

#usersArray<User>

Returns the users that are assigned to the account.

Returns:

  • (Array<User>)

    the users that are assigned to the account



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

has_many :users