Class: LWS::Auth::Account

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

Overview

The account class

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

#appsArray<App>

Returns the apps that are assigned to the account.

Returns:

  • (Array<App>)

    the apps that are assigned to the account



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

has_many :apps

#avatar_urlString

Returns the avatar URL of the account.

Returns:

  • (String)

    the avatar URL of the account



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

attribute :avatar_url

#companyCompany

Returns the company that the account belongs to.

Returns:

  • (Company)

    the company that the account belongs to



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

belongs_to :company

#company_idInteger

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

Returns:

  • (Integer)

    the ID of the company that the account belongs to



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

attribute :company_id

#devicesArray<Device>

Returns the devices that are assigned to the account.

Returns:

  • (Array<Device>)

    the devices that are assigned to the account



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

has_many :devices

#languageString

Returns the language of the account (at least 2 characters long).

Returns:

  • (String)

    the language of the account (at least 2 characters long)



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

attribute :language

#nameString

Returns the name of the account (at least 8 characters long).

Returns:

  • (String)

    the name of the account (at least 8 characters long)



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

attribute :name

#usersArray<User>

Returns the users that are assigned to the account.

Returns:

  • (Array<User>)

    the users that are assigned to the account



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

has_many :users