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

#app_idsArray<Integer>

Returns the IDS of the apps that are assigned to the account.

Returns:

  • (Array<Integer>)

    the IDS of the apps that are assigned to the account



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

attribute :app_ids

#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



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



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

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



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

attribute :company_id

#device_idsArray<Integer>

Returns the IDs of the devices that are assigned to the account.

Returns:

  • (Array<Integer>)

    the IDs of the devices that are assigned to the account



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

attribute :device_ids

#devicesArray<Device>

Returns the devices that are assigned to the account.

Returns:

  • (Array<Device>)

    the devices that are assigned to the account



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

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)



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

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)



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

attribute :name

#user_idsArray<Integer>

Returns the IDS of the users that are assigned to the account.

Returns:

  • (Array<Integer>)

    the IDS of the users that are assigned to the account



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

attribute :user_ids

#usersArray<User>

Returns the users that are assigned to the account.

Returns:

  • (Array<User>)

    the users that are assigned to the account



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

has_many :users