Class: Freshbooks::API::Estimate
- Defined in:
- lib/freshbooks/api/estimate.rb
Overview
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
-
#accept(params = {}) ⇒ Object
Change an existing estimate’s status to “Accepted”.
-
#get_pdf(params = {}) ⇒ Object
Returns the specified estimate in PDF format.
-
#mark_as_sent(params = {}) ⇒ Object
Move a draft estimate into “Sent” status without issuing the estimate.
-
#send_by_email(params = {}) ⇒ Object
Send an estimate to the associated client via e-mail.
Methods inherited from Client
#call, #hash_to_raw_xml, #initialize, #options, #parse, #post, #to_request, #underscore
Methods included from CRUD
#create, #delete, #get, #list, #update
Methods included from Methods
#callbacks, #categories, #clients, #contractors, #currencies, #default_terms, #email_templates, #estimates, #expenses, #gateways, #invoices, #items, #languages, #payments, #projects, #receipts, #recurring, #reports, #staff, #systems, #tasks, #taxes, #time_entries
Constructor Details
This class inherits a constructor from Freshbooks::Client
Instance Method Details
#accept(params = {}) ⇒ Object
Change an existing estimate’s status to “Accepted”.
22 23 24 |
# File 'lib/freshbooks/api/estimate.rb', line 22 def accept(params = {}) call('estimate.accept', params) end |
#get_pdf(params = {}) ⇒ Object
Returns the specified estimate in PDF format.
15 16 17 |
# File 'lib/freshbooks/api/estimate.rb', line 15 def get_pdf(params = {}) call('estimate.getPDF', params) end |
#mark_as_sent(params = {}) ⇒ Object
Move a draft estimate into “Sent” status without issuing the estimate.
29 30 31 |
# File 'lib/freshbooks/api/estimate.rb', line 29 def mark_as_sent(params = {}) call('markAsSent', params) end |
#send_by_email(params = {}) ⇒ Object
Send an estimate to the associated client via e-mail.
8 9 10 |
# File 'lib/freshbooks/api/estimate.rb', line 8 def send_by_email(params = {}) call('estimate.sendByEmail', params) end |