Class: Company::Quote

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

Instance Method Summary collapse

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.

Returns:

  • (BigDecimal, nil) —

    what the quote comes to, in dollars.



8
# File 'lib/company/resources/quote.rb', line 8

def amount = decimal :amount