Class: Multisafepay::GatewaysResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/multisafepay/resources/gateways.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Multisafepay::Resource

Instance Method Details

#list(**params) ⇒ Object



3
4
5
# File 'lib/multisafepay/resources/gateways.rb', line 3

def list(**params)
  Gateway.new get_request("gateways", params: params)
end

#retrieve(id, params = {}) ⇒ Object



7
8
9
# File 'lib/multisafepay/resources/gateways.rb', line 7

def retrieve(id, params = {})
  Gateway.new get_request("gateways/#{id}", params: params)
end