Class: Koho::Client::InboundInvoices

Inherits:
Koho::Client show all
Defined in:
lib/koho.rb

Constant Summary

Constants inherited from Koho::Client

API_BASE_URL

Instance Attribute Summary

Attributes inherited from Koho::Client

#company_id, #token

Instance Method Summary collapse

Methods inherited from Koho::Client

#contracts, #customers, #delete, #get, #inbound_invoices, #info, #initialize, #invoice_terms, #invoices, #post, #project_tasks, #projects, #put

Constructor Details

This class inherits a constructor from Koho::Client

Instance Method Details

#create(params) ⇒ Object



72
73
74
# File 'lib/koho.rb', line 72

def create params
  post '/', invoice_inbound: params
end

#destroy(id) ⇒ Object



80
81
82
# File 'lib/koho.rb', line 80

def destroy id
  delete "/#{id}"
end

#find(id) ⇒ Object



67
68
69
# File 'lib/koho.rb', line 67

def find id
  get "/#{id}"
end

#listObject



63
64
65
# File 'lib/koho.rb', line 63

def list
  get '/'
end

#update(id, params) ⇒ Object



76
77
78
# File 'lib/koho.rb', line 76

def update id, params
  put "/#{id}", invoice_inbound: params
end