Class: LWS::Auth::Contract
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::Auth::Contract
- Defined in:
- lib/lws/apps/auth.rb
Overview
The contract class
Instance Attribute Summary collapse
-
#company ⇒ Company
The company that has the contract.
-
#company_id ⇒ Integer
The ID of the company that has the contract.
-
#end_date ⇒ String
The end date of the contract (date/time string).
-
#start_date ⇒ String
The start date of the contract (date/time string).
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
#company ⇒ Company
Returns the company that has the contract.
281 |
# File 'lib/lws/apps/auth.rb', line 281 belongs_to :company |
#company_id ⇒ Integer
Returns the ID of the company that has the contract.
285 |
# File 'lib/lws/apps/auth.rb', line 285 attribute :company_id |
#end_date ⇒ String
Returns the end date of the contract (date/time string).
289 |
# File 'lib/lws/apps/auth.rb', line 289 attribute :end_date |
#start_date ⇒ String
Returns the start date of the contract (date/time string).
293 |
# File 'lib/lws/apps/auth.rb', line 293 attribute :start_date |