Sha256: 869ae8645b76b323d564da129a663cd0ee4197efa3e7a134f690c7e8053df063

Contents?: true

Size: 763 Bytes

Versions: 1

Compression:

Stored size: 763 Bytes

Contents

class CentrumFaktur::Estimate
  def self.list(options = {})
    request = CentrumFaktur::Connection.new.get("/api/1.0/estimates/", options)
    request.handle_response
  end

  def self.list_updates(options = {})
    request = CentrumFaktur::Connection.new.get("/api/1.0/estimates/updates/", options)
    request.handle_response
  end

  def self.show(estimate_uri, options = {})
    request = CentrumFaktur::Connection.new.get(estimate_uri, options)
    request.handle_response
  end

  def self.create(params)
    request = CentrumFaktur::Connection.new.post("/api/1.0/estimates/", params)
    request.handle_response
  end

  def self.destroy(estimate_uri)
    request = CentrumFaktur::Connection.new.delete(estimate_uri)
    request.handle_response
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
centrum_faktur-0.0.1 lib/centrum_faktur/estimate.rb