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



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

has_many :apps

#avatar_urlString

Returns the avatar URL of the account.

Returns:

  • (String)

    the avatar URL of the account



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

attribute :avatar_url

#companyCompany

Returns the company that the account belongs to.

Returns:

  • (Company)

    the company that the account belongs to



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

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



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

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



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

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)



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

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)



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

attribute :name

#start_appApp?

Returns the app to start with/open when logging in.

Returns:

  • (App, nil)

    the app to start with/open when logging in



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

belongs_to :start_app, class_name: "LWS::Auth::App",
foreign_key: :start_app_id,
uri: "apps/:id"

#start_app_idInteger?

Returns the ID of the app to start with/open when logging in.

Returns:

  • (Integer, nil)

    the ID of the app to start with/open when logging in



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

attribute :start_app_id

#usersArray<User>

Returns the users that are assigned to the account.

Returns:

  • (Array<User>)

    the users that are assigned to the account



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

has_many :users