Method: ProcessOut::GatewayConfiguration#all
- Defined in:
- lib/processout/gateway_configuration.rb
#all(options = {}) ⇒ Object
Get all the gateway configurations. Params:
options-
Hashof options
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/processout/gateway_configuration.rb', line 227 def all( = {}) self.prefill() request = Request.new(@client) path = "/gateway-configurations" data = { "expand_merchant_accounts" => .fetch(:expand_merchant_accounts, nil) } response = Response.new(request.get(path, data, )) return_values = Array.new a = Array.new body = response.body for v in body['gateway_configurations'] tmp = GatewayConfiguration.new(@client) tmp.fill_with_data(v) a.push(tmp) end return_values.push(a) return_values[0] end |