Class: LWS::Auth::Contract

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

Overview

The contract class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#companyCompany

Returns the company that has the contract.

Returns:

  • (Company)

    the company that has the contract



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

belongs_to :company

#company_idInteger

Returns the ID of the company that has the contract.

Returns:

  • (Integer)

    the ID of the company that has the contract



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

attribute :company_id

#end_dateString

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

Returns:

  • (String)

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



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

attribute :end_date

#start_dateString

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

Returns:

  • (String)

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



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

attribute :start_date