Sha256: 96936d3d2bfd1e272931472bb09662f5c7d51f4484d17e38c3d499040e225c64

Contents?: true

Size: 403 Bytes

Versions: 49

Compression:

Stored size: 403 Bytes

Contents

module RockRMS
  class Client
    module Gateway
      PATH = 'FinancialGateways'.freeze

      def list_gateways(options = {})
        res = get(gateway_path, options)
        Response::Gateway.format(res)
      end

      def delete_gateway(id)
        delete(gateway_path(id))
      end

      private

      def gateway_path(id = nil)
        id ? "#{PATH}/#{id}" : PATH
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
rock_rms-9.10.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.9.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.8.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.7.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.6.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.5.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.4.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.3.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.2.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.1.0 lib/rock_rms/resources/gateway.rb
rock_rms-9.0.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.23.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.22.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.21.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.20.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.19.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.18.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.17.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.16.0 lib/rock_rms/resources/gateway.rb
rock_rms-8.15.2 lib/rock_rms/resources/gateway.rb