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
-
#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.
-
#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).
-
#start_app ⇒ App?
The app to start with/open when logging in.
-
#start_app_id ⇒ Integer?
The ID of the app to start with/open when logging in.
-
#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
#apps ⇒ Array<App>
Returns the apps that are assigned to the account.
48 |
# File 'lib/lws/apps/auth.rb', line 48 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.
52 |
# File 'lib/lws/apps/auth.rb', line 52 belongs_to :company |
#company_id ⇒ Integer
Returns the ID of the company that the account belongs to.
56 |
# File 'lib/lws/apps/auth.rb', line 56 attribute :company_id |
#devices ⇒ Array<Device>
Returns the devices that are assigned to the account.
60 |
# File 'lib/lws/apps/auth.rb', line 60 has_many :devices |
#language ⇒ String
Returns the language of the account (at least 2 characters long).
65 |
# File 'lib/lws/apps/auth.rb', line 65 attribute :language |
#name ⇒ String
Returns the name of the account (at least 8 characters long).
70 |
# File 'lib/lws/apps/auth.rb', line 70 attribute :name |
#start_app ⇒ App?
Returns the app to start with/open when logging in.
74 75 76 |
# File 'lib/lws/apps/auth.rb', line 74 belongs_to :start_app, class_name: "LWS::Auth::App", foreign_key: :start_app_id, uri: "apps/:id" |
#start_app_id ⇒ Integer?
Returns the ID of the app to start with/open when logging in.
80 |
# File 'lib/lws/apps/auth.rb', line 80 attribute :start_app_id |
#users ⇒ Array<User>
Returns the users that are assigned to the account.
84 |
# File 'lib/lws/apps/auth.rb', line 84 has_many :users |