Sha256: 96936d3d2bfd1e272931472bb09662f5c7d51f4484d17e38c3d499040e225c64

Contents?: true

Size: 403 Bytes

Versions: 52

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

52 entries across 52 versions & 1 rubygems

Version Path
rock_rms-8.0.0 lib/rock_rms/resources/gateway.rb
rock_rms-7.4.0 lib/rock_rms/resources/gateway.rb
rock_rms-7.3.0 lib/rock_rms/resources/gateway.rb
rock_rms-7.2.0 lib/rock_rms/resources/gateway.rb
rock_rms-7.1.2 lib/rock_rms/resources/gateway.rb
rock_rms-7.1.1 lib/rock_rms/resources/gateway.rb
rock_rms-7.1.0 lib/rock_rms/resources/gateway.rb
rock_rms-7.0.3 lib/rock_rms/resources/gateway.rb
rock_rms-7.0.2 lib/rock_rms/resources/gateway.rb
rock_rms-7.0.1 lib/rock_rms/resources/gateway.rb
rock_rms-7.0.0 lib/rock_rms/resources/gateway.rb
rock_rms-6.2.0 lib/rock_rms/resources/gateway.rb