Sha256: 4588b65d03c5bfc3200c1cc41d264b3246a4eae337532b819d608f8496d085a9

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

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

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

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

  def self.update(customer_uri, params)
    request = CentrumFaktur::Connection.new.put(customer_uri, params)
    request.handle_response
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
centrum_faktur-0.2.0 lib/centrum_faktur/customer.rb
centrum_faktur-0.1.0 lib/centrum_faktur/customer.rb
centrum_faktur-0.0.1 lib/centrum_faktur/customer.rb