Class: LWS::Auth::Contract

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

Overview

The contract class

Instance Attribute Summary collapse

Instance Attribute Details

#companyCompany

Returns the company that has the contract.

Returns:

  • (Company)

    the company that has the contract



273
# File 'lib/lws/apps/auth.rb', line 273

belongs_to :company

#company_idFixnum

Returns the ID of the company that has the contract.

Returns:

  • (Fixnum)

    the ID of the company that has the contract



277
# File 'lib/lws/apps/auth.rb', line 277

attribute :company_id

#created_atString (readonly)

Returns the timestamp of when the contract was created.

Returns:

  • (String)

    the timestamp of when the contract was created



289
# File 'lib/lws/apps/auth.rb', line 289

attribute :created_at

#end_dateString

Returns the end date of the contract (date/time string).

Returns:

  • (String)

    the end date of the contract (date/time string)



281
# File 'lib/lws/apps/auth.rb', line 281

attribute :end_date

#idFixnum (readonly)

Returns the (unique) ID of the contract.

Returns:

  • (Fixnum)

    the (unique) ID of the contract



269
# File 'lib/lws/apps/auth.rb', line 269

attribute :id

#start_dateString

Returns the start date of the contract (date/time string).

Returns:

  • (String)

    the start date of the contract (date/time string)



285
# File 'lib/lws/apps/auth.rb', line 285

attribute :start_date

#updated_atString (readonly)

Returns the timestamp of when the contract was last updated.

Returns:

  • (String)

    the timestamp of when the contract was last updated



293
# File 'lib/lws/apps/auth.rb', line 293

attribute :updated_at