Class: LWS::Auth::Company

Inherits:
Generic::Model show all
Defined in:
lib/lws/auth.rb

Overview

The company class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountsArray<Account>

Returns the accounts that are assigned to the company.

Returns:

  • (Array<Account>)

    the accounts that are assigned to the company



132
# File 'lib/lws/auth.rb', line 132

has_many :accounts

#addressString

Returns the address of the company.

Returns:

  • (String)

    the address of the company



# File 'lib/lws/auth.rb', line 134


#appsArray<App>

Returns the apps that are assigned to the company.

Returns:

  • (Array<App>)

    the apps that are assigned to the company



128
# File 'lib/lws/auth.rb', line 128

has_many :apps

#cityString

Returns the city of the company.

Returns:

  • (String)

    the city of the company



# File 'lib/lws/auth.rb', line 137


#contact_personAccount

Returns the contact person of the company.

Returns:

  • (Account)

    the contact person of the company



142
# File 'lib/lws/auth.rb', line 142

belongs_to :contact_person, class_name: "Account"

#contact_person_idFixnum

Returns the ID of the contact person of the company.

Returns:

  • (Fixnum)

    the ID of the contact person of the company



# File 'lib/lws/auth.rb', line 144


#countryString

Returns the country of the company.

Returns:

  • (String)

    the country of the company



# File 'lib/lws/auth.rb', line 147


#created_atString

Returns the timestamp of when the company was created.

Returns:

  • (String)

    the timestamp of when the company was created



# File 'lib/lws/auth.rb', line 166


#idFixnum (readonly)

Returns the (unique) ID of the company.

Returns:

  • (Fixnum)

    the (unique) ID of the company



# File 'lib/lws/auth.rb', line 123


#nameString

Returns the name of the company.

Returns:

  • (String)

    the name of the company



# File 'lib/lws/auth.rb', line 150


#numberString

Returns the street address number of the company.

Returns:

  • (String)

    the street address number of the company



# File 'lib/lws/auth.rb', line 153


#parentCompany

Returns the parenty company.

Returns:

  • (Company)

    the parenty company



158
# File 'lib/lws/auth.rb', line 158

belongs_to :parent, class_name: "Company"

#parent_idFixnum

Returns the ID of the parenty company.

Returns:

  • (Fixnum)

    the ID of the parenty company



# File 'lib/lws/auth.rb', line 160


#updated_atString

Returns the timestamp of when the company was last updated.

Returns:

  • (String)

    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_codeString

Returns the zip code of the company.

Returns:

  • (String)

    the zip code of the company



# File 'lib/lws/auth.rb', line 163