Class: Company::Account

Inherits:
Object
  • Object
show all
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

Instance Method Details

#business ⇒ Business

Returns business the credentials belong to.

Returns:

  • (Business) —

    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.

Returns:

  • (Collection) —

    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.

Returns:

  • (Leads) —

    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.

Returns:



16
# File 'lib/company/account.rb', line 16

def technicians = unanswered :technicians

#visits ⇒ Visits

Returns visits of the business, each a Visit; a platform may also find one.

Returns:

  • (Visits) —

    visits of the business, each a Visit; a platform may also find one.



13
# File 'lib/company/account.rb', line 13

def visits = unanswered :visits

#windows ⇒ Windows

Returns free time of the business, each a Window, where the platform works it out.

Returns:

  • (Windows) —

    free time of the business, each a Window, where the platform works it out.



19
# File 'lib/company/account.rb', line 19

def windows = unanswered :windows