Class: LWS::Auth::Company
- Inherits:
-
Generic::Model
- Object
- Generic::Model
- LWS::Auth::Company
- Defined in:
- lib/lws/auth.rb
Overview
The company class
Instance Attribute Summary collapse
-
#accounts ⇒ Array<Account>
The accounts that are assigned to the company.
-
#address ⇒ String
The address of the company.
-
#apps ⇒ Array<App>
The apps that are assigned to the company.
-
#city ⇒ String
The city of the company.
-
#contact_person ⇒ Account
The contact person of the company.
-
#contact_person_id ⇒ Fixnum
The ID of the contact person of the company.
-
#country ⇒ String
The country of the company.
-
#created_at ⇒ String
The timestamp of when the company was created.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the company.
-
#name ⇒ String
The name of the company.
-
#number ⇒ String
The street address number of the company.
-
#parent ⇒ Company
The parenty company.
-
#parent_id ⇒ Fixnum
The ID of the parenty company.
-
#updated_at ⇒ String
The timestamp of when the company was last updated.
-
#zip_code ⇒ String
The zip code of the company.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Company
constructor
A new instance of Company.
Constructor Details
#initialize(attrs = {}) ⇒ Company
Returns a new instance of Company.
172 173 174 |
# File 'lib/lws/auth.rb', line 172 def initialize(attrs = {}) super end |
Instance Attribute Details
#accounts ⇒ Array<Account>
Returns the accounts that are assigned to the company.
132 |
# File 'lib/lws/auth.rb', line 132 has_many :accounts |
#address ⇒ String
Returns the address of the company.
|
|
# File 'lib/lws/auth.rb', line 134
|
#apps ⇒ Array<App>
Returns the apps that are assigned to the company.
128 |
# File 'lib/lws/auth.rb', line 128 has_many :apps |
#city ⇒ String
Returns the city of the company.
|
|
# File 'lib/lws/auth.rb', line 137
|
#contact_person ⇒ Account
Returns the contact person of the company.
142 |
# File 'lib/lws/auth.rb', line 142 belongs_to :contact_person, class_name: "Account" |
#contact_person_id ⇒ Fixnum
Returns the ID of the contact person of the company.
|
|
# File 'lib/lws/auth.rb', line 144
|
#country ⇒ String
Returns the country of the company.
|
|
# File 'lib/lws/auth.rb', line 147
|
#created_at ⇒ String
Returns the timestamp of when the company was created.
|
|
# File 'lib/lws/auth.rb', line 166
|
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the company.
|
|
# File 'lib/lws/auth.rb', line 123
|
#name ⇒ String
Returns the name of the company.
|
|
# File 'lib/lws/auth.rb', line 150
|
#number ⇒ String
Returns the street address number of the company.
|
|
# File 'lib/lws/auth.rb', line 153
|
#parent ⇒ Company
Returns the parenty company.
158 |
# File 'lib/lws/auth.rb', line 158 belongs_to :parent, class_name: "Company" |
#parent_id ⇒ Fixnum
Returns the ID of the parenty company.
|
|
# File 'lib/lws/auth.rb', line 160
|
#updated_at ⇒ String
Returns the timestamp of when the company was last updated.
172 173 174 |
# File 'lib/lws/auth.rb', line 172 def initialize(attrs = {}) super end |
#zip_code ⇒ String
Returns the zip code of the company.
|
|
# File 'lib/lws/auth.rb', line 163
|