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, #work_sessions

Constructor Details

This class inherits a constructor from Koho::Client

Instance Method Details

#create(params) ⇒ Object



74
75
76
# File 'lib/koho.rb', line 74

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

#destroy(id) ⇒ Object



82
83
84
# File 'lib/koho.rb', line 82

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

#find(id) ⇒ Object



69
70
71
# File 'lib/koho.rb', line 69

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

#listObject



65
66
67
# File 'lib/koho.rb', line 65

def list
  get '/'
end

#update(id, params) ⇒ Object



78
79
80
# File 'lib/koho.rb', line 78

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