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



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

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

#destroy(id) ⇒ Object



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

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

#find(id) ⇒ Object



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

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

#listObject



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

def list
  get '/'
end

#update(id, params) ⇒ Object



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

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