Class: Freshbooks::API::DefaultTerm

Inherits:
Client
  • Object
show all
Includes:
NoCD
Defined in:
lib/freshbooks/api/default_term.rb

Overview

Instance Attribute Summary

Attributes inherited from Client

#api_url, #token

Instance Method Summary collapse

Methods included from NoCD

included

Methods inherited from Client

#call, #hash_to_raw_xml, #initialize, #options, #parse, #post, #to_request, #underscore

Methods included from CRUD

#create, #delete

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

#get(params = {}) ⇒ Object


12
13
14
# File 'lib/freshbooks/api/default_term.rb', line 12

def get(params = {})
  call('default_terms.get', params)
end

#list(params = {}) ⇒ Object

List/Get/Update


8
9
10
# File 'lib/freshbooks/api/default_term.rb', line 8

def list(params = {})
  call('default_terms.list', params)
end

#update(params = {}) ⇒ Object


16
17
18
# File 'lib/freshbooks/api/default_term.rb', line 16

def update(params = {})
  call('default_terms.update', params)
end