Class: LWS::Auth::Account
- Inherits:
-
Generic::Model
- Object
- Generic::Model
- LWS::Auth::Account
- Defined in:
- lib/lws/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
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.
-
#name ⇒ String
The name of the account.
-
#updated_at ⇒ String
The timestamp of when the account was last updated.
-
#users ⇒ Array<User>
The users that are assigned to the account.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(attrs = {}) ⇒ Account
Returns a new instance of Account.
81 82 83 |
# File 'lib/lws/auth.rb', line 81 def initialize(attrs = {}) super end |
Instance Attribute Details
#apps ⇒ Array<App>
Returns the apps that are assigned to the account.
52 |
# File 'lib/lws/auth.rb', line 52 has_many :apps |
#avatar_url ⇒ String
Returns the avatar URL of the account.
|
|
# File 'lib/lws/auth.rb', line 47
|
#company ⇒ Company
Returns the company that the account belongs to.
64 |
# File 'lib/lws/auth.rb', line 64 belongs_to :company |
#company_id ⇒ Fixnum
Returns the ID of the company that the account belongs to.
|
|
# File 'lib/lws/auth.rb', line 66
|
#created_at ⇒ String
Returns the timestamp of when the account was created.
|
|
# File 'lib/lws/auth.rb', line 75
|
#devices ⇒ Array<Device>
Returns the devices that are assigned to the account.
56 |
# File 'lib/lws/auth.rb', line 56 has_many :devices |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the account.
|
|
# File 'lib/lws/auth.rb', line 44
|
#language ⇒ String
Returns the language of the account.
|
|
# File 'lib/lws/auth.rb', line 69
|
#name ⇒ String
Returns the name of the account.
|
|
# File 'lib/lws/auth.rb', line 72
|
#updated_at ⇒ String
Returns the timestamp of when the account was last updated.
81 82 83 |
# File 'lib/lws/auth.rb', line 81 def initialize(attrs = {}) super end |
#users ⇒ Array<User>
Returns the users that are assigned to the account.
60 |
# File 'lib/lws/auth.rb', line 60 has_many :users |