Module: EngivenAPI::Client::Customer

Included in:
EngivenAPI::Client
Defined in:
lib/engiven/resources/customer.rb

Instance Method Summary collapse

Instance Method Details

#create_customer(options = {}) ⇒ Object



8
9
10
# File 'lib/engiven/resources/customer.rb', line 8

def create_customer(options = {})
  post('/customers', options)
end

#find_customer(id) ⇒ Object



12
13
14
# File 'lib/engiven/resources/customer.rb', line 12

def find_customer(id)
  get("/customers/#{id}")
end

#list_customers(options = {}) ⇒ Object



4
5
6
# File 'lib/engiven/resources/customer.rb', line 4

def list_customers(options = {})
  get('/customers', options)
end

#remove_logo(id) ⇒ Object



24
25
26
# File 'lib/engiven/resources/customer.rb', line 24

def (id)
  post("/customers/#{id}/logo")
end

#update_customer(id, options = {}) ⇒ Object



16
17
18
# File 'lib/engiven/resources/customer.rb', line 16

def update_customer(id, options = {})
  post("/customers/#{id}", options)
end

#upload_logo(id, options) ⇒ Object



20
21
22
# File 'lib/engiven/resources/customer.rb', line 20

def (id, options)
  post("/customers/#{id}/logo", options)
end