Sha256: d1e6788b7b444ba10e27d1f74b6ef73ecaa79f091cdc606d1df5527758ba625c

Contents?: true

Size: 255 Bytes

Versions: 8

Compression:

Stored size: 255 Bytes

Contents

module Rapidash
  module TestClient

    attr_accessor :responses

    def initialize(options = {})
      @responses = options.delete(:responses)
    end

    def request(verb, url, options = {})
      Response.new(responses[verb][url])
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rapidash-0.1.2 lib/rapidash/test_client.rb
rapidash-0.1.1 lib/rapidash/test_client.rb
rapidash-0.1.0 lib/rapidash/test_client.rb
rapidash-0.0.6 lib/rapidash/test_client.rb
rapidash-0.0.5 lib/rapidash/test_client.rb
rapidash-0.0.4 lib/rapidash/test_client.rb
rapidash-0.0.3 lib/rapidash/test_client.rb
rapidash-0.0.2 lib/rapidash/test_client.rb