Method: ProcessOut::Customer#all

Defined in:
lib/processout/customer.rb

#all(options = {}) ⇒ Object

Get all the customers. Params:

options

Hash of options



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
# File 'lib/processout/customer.rb', line 633

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