Sha256: 62f4306ab5ef925968d88800162d6c97b4926b31bc4168c8b1fdf8d034faf69e

Contents?: true

Size: 563 Bytes

Versions: 5

Compression:

Stored size: 563 Bytes

Contents

module Workarea
  module Emarsys
    class SalesDataBogusGateway
      attr_reader :options

      def initialize(options = {})
        @options = options
      end

      def send_file(file)
        Response.new(response)
      end

      private

        def response
          response = Faraday.new do |builder|
            builder.adapter :test do |stub|
              stub.get('/rest/bogus.json') { |env| [ 200, {}, nil ] }
            end
          end
          r = response.get('/rest/bogus.json')
          Response.new(r)
        end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-emarsys-1.0.4 app/lib/workarea/emarsys/sales_data_bogus_gateway.rb
workarea-emarsys-2.0.1 app/lib/workarea/emarsys/sales_data_bogus_gateway.rb
workarea-emarsys-2.0.0 app/lib/workarea/emarsys/sales_data_bogus_gateway.rb
workarea-emarsys-1.1.0 app/lib/workarea/emarsys/sales_data_bogus_gateway.rb
workarea-emarsys-1.0.3 app/lib/workarea/emarsys/sales_data_bogus_gateway.rb