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 ⇒ Fixnum
The ID of the company that the account belongs to.
-
#created_at ⇒ String
readonly
The timestamp of when the account was created.
-
#devices ⇒ Array<Device>
The devices that are assigned to the account.
-
#id ⇒ Fixnum
readonly
The (unique) ID of 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 ⇒ Fixnum?
The ID of the app to start with/open when logging in.
-
#updated_at ⇒ String
readonly
The timestamp of when the account was last updated.
-
#users ⇒ Array<User>
The users that are assigned to the account.
Instance Attribute Details
#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.
49 |
# File 'lib/lws/apps/auth.rb', line 49 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 ⇒ Fixnum
Returns the ID of the company that the account belongs to.
61 |
# File 'lib/lws/apps/auth.rb', line 61 attribute :company_id |
#created_at ⇒ String (readonly)
Returns the timestamp of when the account was created.
91 |
# File 'lib/lws/apps/auth.rb', line 91 attribute :created_at |
#devices ⇒ Array<Device>
Returns the devices that are assigned to the account.
65 |
# File 'lib/lws/apps/auth.rb', line 65 has_many :devices |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the account.
45 |
# File 'lib/lws/apps/auth.rb', line 45 attribute :id |
#language ⇒ String
Returns the language of the account (at least 2 characters long).
70 |
# File 'lib/lws/apps/auth.rb', line 70 attribute :language |
#name ⇒ String
Returns the name of the account (at least 8 characters long).
75 |
# File 'lib/lws/apps/auth.rb', line 75 attribute :name |
#start_app ⇒ App?
Returns 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_id ⇒ Fixnum?
Returns 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_at ⇒ String (readonly)
Returns the timestamp of when the account was last updated.
95 |
# File 'lib/lws/apps/auth.rb', line 95 attribute :updated_at |
#users ⇒ Array<User>
Returns the users that are assigned to the account.
87 |
# File 'lib/lws/apps/auth.rb', line 87 has_many :users |