Method: ProcessOut::Customer#all

Defined in:
lib/processout/customer.rb

#all(options = {}) ⇒ Object

Get all the customers. Params:

options

Hash of options



611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
# File 'lib/processout/customer.rb', line 611

def all(options = {})
  self.prefill(options)

  request = Request.new(@client)
  path    = "/customers"
  data    = {

  }

  response = Response.new(request.get(path, data, options))
  return_values = Array.new
  
  a    = Array.new
  body = response.body
  for v in body['customers']
    tmp = Customer.new(@client)
    tmp.fill_with_data(v)
    a.push(tmp)
  end

  return_values.push(a)
  

  
  return_values[0]
end