Class: Company::Quote
- Defined in:
- lib/company/resources/quote.rb
Overview
A price the business sent a customer, which a job names where it was won with one.
Class Method Summary collapse
-
.attributes ⇒ Object
What every quote reads, by the vocabulary's names.
Instance Method Summary collapse
-
#amount ⇒ BigDecimal?
What the quote comes to, in dollars.
Methods inherited from Resource
#id, #initialize, keys, node_keys
Constructor Details
This class inherits a constructor from Company::Resource
Class Method Details
.attributes ⇒ Object
What every quote reads, by the vocabulary's names.
5 |
# File 'lib/company/resources/quote.rb', line 5 def self.attributes = %i[id amount] |
Instance Method Details
#amount ⇒ BigDecimal?
Returns what the quote comes to, in dollars.
8 |
# File 'lib/company/resources/quote.rb', line 8 def amount = decimal :amount |