Class: LWS::Auth::Account
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Auth::Account
- Defined in:
- lib/lws/apps/auth.rb
Overview
The account class
Instance Attribute Summary collapse
-
#app_ids ⇒ Array<Integer>
The IDS of the apps that are assigned to the account.
-
#apps ⇒ Array<App>
The apps that are assigned to the account.
-
#avatar_url ⇒ String
The avatar URL of the account.
-
#company ⇒ Company
The company that the account belongs to.
-
#company_id ⇒ Integer
The ID of the company that the account belongs to.
-
#device_ids ⇒ Array<Integer>
The IDs of the devices that are assigned to the account.
-
#devices ⇒ Array<Device>
The devices that are assigned to the account.
-
#language ⇒ String
The language of the account (at least 2 characters long).
-
#name ⇒ String
The name of the account (at least 8 characters long).
-
#user_ids ⇒ Array<Integer>
The IDS of the users that are assigned to the account.
-
#users ⇒ Array<User>
The users that are assigned to the account.
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_ids ⇒ Array<Integer>
Returns the IDS of the apps that are assigned to the account.
49 |
# File 'lib/lws/apps/auth.rb', line 49 attribute :app_ids |
#apps ⇒ Array<App>
Returns the apps that are assigned to the account.
53 |
# File 'lib/lws/apps/auth.rb', line 53 has_many :apps |
#avatar_url ⇒ String
Returns the avatar URL of the account.
44 |
# File 'lib/lws/apps/auth.rb', line 44 attribute :avatar_url |
#company ⇒ Company
Returns the company that the account belongs to.
57 |
# File 'lib/lws/apps/auth.rb', line 57 belongs_to :company |
#company_id ⇒ Integer
Returns the ID of the company that the account belongs to.
61 |
# File 'lib/lws/apps/auth.rb', line 61 attribute :company_id |
#device_ids ⇒ Array<Integer>
Returns the IDs of the devices that are assigned to the account.
66 |
# File 'lib/lws/apps/auth.rb', line 66 attribute :device_ids |
#devices ⇒ Array<Device>
Returns the devices that are assigned to the account.
70 |
# File 'lib/lws/apps/auth.rb', line 70 has_many :devices |
#language ⇒ String
Returns the language of the account (at least 2 characters long).
75 |
# File 'lib/lws/apps/auth.rb', line 75 attribute :language |
#name ⇒ String
Returns the name of the account (at least 8 characters long).
80 |
# File 'lib/lws/apps/auth.rb', line 80 attribute :name |
#user_ids ⇒ Array<Integer>
Returns the IDS of the users that are assigned to the account.
85 |
# File 'lib/lws/apps/auth.rb', line 85 attribute :user_ids |
#users ⇒ Array<User>
Returns the users that are assigned to the account.
89 |
# File 'lib/lws/apps/auth.rb', line 89 has_many :users |