Class: Hcp::Employee

Inherits:
Resource show all
Includes:
Named, Timestamped
Defined in:
lib/hcp/resources/employee.rb

Overview

A pro on a Housecall Pro account.

Instance Method Summary collapse

Methods included from Named

#name

Methods included from Timestamped

#created_at, #updated_at

Methods inherited from Resource

amount, attribute, #id, #initialize, timestamp

Constructor Details

This class inherits a constructor from Hcp::Resource

Instance Method Details

#emailString?

Returns the email, as Housecall Pro answers it.

Returns:

  • (String, nil)

    the email, as Housecall Pro answers it.



6
# File 'lib/hcp/resources/employee.rb', line 6

attribute :email

#phoneString?

Returns:

  • (String, nil)

    the number the pro is reached on.

  • (String, nil)

    the phone, as Housecall Pro answers it.



10
# File 'lib/hcp/resources/employee.rb', line 10

attribute :phone, :mobile_number

#roleString?

Returns the role, as Housecall Pro answers it.

Returns:

  • (String, nil)

    the role, as Housecall Pro answers it.



7
# File 'lib/hcp/resources/employee.rb', line 7

attribute :role