Method: ProcessOut::ErrorCodes#all

Defined in:
lib/processout/error_codes.rb

#all(options = {}) ⇒ Object

Get all error codes. Params:

options

Hash of options



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/processout/error_codes.rb', line 83

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

  request = Request.new(@client)
  path    = "/error-codes"
  data    = {

  }

  response = Response.new(request.get(path, data, options))
  return_values = Array.new
  
  body = response.body
  
  obj = ErrorCodes.new(@client)
  return_values.push(obj.fill_with_data(body))
  

  
  return_values[0]
end