Sha256: 189f763af53cc56940efbebe828276ed62b63dc77b7a3f035a70a3f9a7790f28

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 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

3 entries across 3 versions & 1 rubygems

Version Path
rapidash-0.2.2 lib/rapidash/test_client.rb
rapidash-0.2.1 lib/rapidash/test_client.rb
rapidash-0.2.0 lib/rapidash/test_client.rb