Class: Company::Account
- Inherits:
-
Object
- Object
- Company::Account
- Defined in:
- lib/company/account.rb
Overview
The gateway a set of credentials opens on a platform: the business they belong to and the records it holds. A gem subclasses it and answers what its platform offers; a reader it leaves out raises NotImplementedError, and the leads it leaves out refuse to file one.
Instance Method Summary collapse
-
#business ⇒ Business
Business the credentials belong to.
-
#jobs ⇒ Collection
Jobs of the business, each a Job; a platform may also
findone. -
#leads ⇒ Leads
Leads of the business:
createfiles one, where the platform takes leads. -
#technicians ⇒ Collection
Technicians of the business, each a Technician.
-
#visits ⇒ Visits
Visits of the business, each a Visit; a platform may also
findone. -
#windows ⇒ Windows
Free time of the business, each a Window, where the platform works it out.
Instance Method Details
#business ⇒ Business
Returns business the credentials belong to.
7 |
# File 'lib/company/account.rb', line 7 def business = unanswered :business |
#jobs ⇒ Collection
Returns jobs of the business, each a Job; a platform may also find one.
10 |
# File 'lib/company/account.rb', line 10 def jobs = unanswered :jobs |
#leads ⇒ Leads
Returns leads of the business: create files one, where the platform takes leads.
22 |
# File 'lib/company/account.rb', line 22 def leads = Leads.new |
#technicians ⇒ Collection
Returns technicians of the business, each a Technician.
16 |
# File 'lib/company/account.rb', line 16 def technicians = unanswered :technicians |