Class: Hcp::Estimate::Option
- Includes:
- Timestamped
- Defined in:
- lib/hcp/resources/estimate/option.rb
Overview
One of the things a customer was offered on an estimate, priced on its own.
Instance Method Summary collapse
- #approval_status ⇒ String?
- #message_from_pro ⇒ String?
-
#name ⇒ String?
The name, as Housecall Pro answers it.
-
#notes ⇒ Array<Note>
What the pros wrote on the option.
-
#option_number ⇒ String?
The option_number, as Housecall Pro answers it.
- #status ⇒ String?
-
#tags ⇒ Array<String>
What the option is tagged with.
-
#total_amount ⇒ BigDecimal?
The total_amount, which Housecall Pro counts in cents.
Methods included from Timestamped
Methods inherited from Resource
amount, attribute, #id, #initialize, timestamp
Constructor Details
This class inherits a constructor from Hcp::Resource
Instance Method Details
#approval_status ⇒ String?
10 |
# File 'lib/hcp/resources/estimate/option.rb', line 10 attribute :approval_status |
#message_from_pro ⇒ String?
16 |
# File 'lib/hcp/resources/estimate/option.rb', line 16 attribute :message_from_pro |
#name ⇒ String?
Returns the name, as Housecall Pro answers it.
6 |
# File 'lib/hcp/resources/estimate/option.rb', line 6 attribute :name |
#notes ⇒ Array<Note>
Returns what the pros wrote on the option.
24 |
# File 'lib/hcp/resources/estimate/option.rb', line 24 def notes = records Note, 'notes' |
#option_number ⇒ String?
Returns the option_number, as Housecall Pro answers it.
7 |
# File 'lib/hcp/resources/estimate/option.rb', line 7 attribute :option_number |
#status ⇒ String?
13 |
# File 'lib/hcp/resources/estimate/option.rb', line 13 attribute :status |
#tags ⇒ Array<String>
Returns what the option is tagged with.
21 |
# File 'lib/hcp/resources/estimate/option.rb', line 21 def = Array(@node['tags']) |
#total_amount ⇒ BigDecimal?
Returns the total_amount, which Housecall Pro counts in cents.
18 |
# File 'lib/hcp/resources/estimate/option.rb', line 18 amount :total_amount |