Class: LWS::Auth::Account

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

Overview

The account class

Instance Attribute Summary collapse

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



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

has_many :apps

#avatar_urlString

Returns the avatar URL of the account.

Returns:

  • (String)

    the avatar URL of the account



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

attribute :avatar_url

#companyCompany

Returns the company that the account belongs to.

Returns:

  • (Company)

    the company that the account belongs to



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

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



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

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the account was created.

Returns:

  • (String)

    the timestamp of when the account was created



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

attribute :created_at

#devicesArray<Device>

Returns the devices that are assigned to the account.

Returns:

  • (Array<Device>)

    the devices that are assigned to the account



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

has_many :devices

#idFixnum (readonly)

Returns the (unique) ID of the account.

Returns:

  • (Fixnum)

    the (unique) ID of the account



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

attribute :id

#languageString

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

Returns:

  • (String)

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



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

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)



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

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



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

belongs_to :start_app, class_name: "LWS::Auth::App"

#start_app_idFixnum?

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

Returns:

  • (Fixnum, nil)

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



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

attribute :start_app_id

#updated_atString (readonly)

Returns the timestamp of when the account was last updated.

Returns:

  • (String)

    the timestamp of when the account was last updated



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

attribute :updated_at

#usersArray<User>

Returns the users that are assigned to the account.

Returns:

  • (Array<User>)

    the users that are assigned to the account



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

has_many :users