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.
49 |
# File 'lib/lws/apps/auth.rb', line 49 has_many :apps |
#avatar_url ⇒ String
Returns the avatar URL of the account.
45 |
# File 'lib/lws/apps/auth.rb', line 45 attribute :avatar_url |
#company ⇒ Company
Returns the company that the account belongs to.
53 |
# File 'lib/lws/apps/auth.rb', line 53 belongs_to :company |
#company_id ⇒ Integer
Returns the ID of the company that the account belongs to.
57 |
# File 'lib/lws/apps/auth.rb', line 57 attribute :company_id |
#devices ⇒ Array<Device>
Returns the devices that are assigned to the account.
61 |
# File 'lib/lws/apps/auth.rb', line 61 has_many :devices |
#language ⇒ String
Returns the language of the account (at least 2 characters long).
66 |
# File 'lib/lws/apps/auth.rb', line 66 attribute :language |
#name ⇒ String
Returns the name of the account (at least 8 characters long).
71 |
# File 'lib/lws/apps/auth.rb', line 71 attribute :name |
#start_app ⇒ App?
Returns 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_id ⇒ Integer?
Returns 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 |
#users ⇒ Array<User>
Returns the users that are assigned to the account.
85 |
# File 'lib/lws/apps/auth.rb', line 85 has_many :users |