Module: Hcp::Timestamped

Included in:
Customer, Employee, Estimate, Estimate::Option, Job
Defined in:
lib/hcp/concerns/timestamped.rb

Overview

Extends a record Housecall Pro stamps with when it was opened and last changed.

Instance Method Summary collapse

Instance Method Details

#created_atTime?

Returns when the record was opened.

Returns:

  • (Time, nil)

    when the record was opened.



5
# File 'lib/hcp/concerns/timestamped.rb', line 5

def created_at = time 'created_at'

#updated_atTime?

Returns when the record last changed.

Returns:

  • (Time, nil)

    when the record last changed.



8
# File 'lib/hcp/concerns/timestamped.rb', line 8

def updated_at = time 'updated_at'