Sha256: 03905dc12a4bbaff966441999198af7cc6cb6a9b0f686e933600c2d5483662c4
Contents?: true
Size: 938 Bytes
Versions: 2
Compression:
Stored size: 938 Bytes
Contents
class CentrumFaktur::Invoice class << self def list(options = {}) request = CentrumFaktur::Connection.new.get("/api/1.0/invoices/", options) request.handle_response end def list_updates(options = {}) request = CentrumFaktur::Connection.new.get("/api/1.0/invoices/updates/", options) request.handle_response end def show(invoice_uri, options = {}) request = CentrumFaktur::Connection.new.get(invoice_uri, options) request.handle_response end def create(params) request = CentrumFaktur::Connection.new.post("/api/1.0/invoices/", params) request.handle_response end def update(invoice_uri, params) request = CentrumFaktur::Connection.new.put(invoice_uri, params) request.handle_response end def destroy(invoice_uri) request = CentrumFaktur::Connection.new.delete(invoice_uri) request.handle_response end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
centrum_faktur-0.2.2 | lib/centrum_faktur/invoice.rb |
centrum_faktur-0.2.1 | lib/centrum_faktur/invoice.rb |