Sha256: 392189e49d5d8140740f96b4fb7d454ba4ddf9c815e4d01b9c86acce5277e403

Contents?: true

Size: 303 Bytes

Versions: 9

Compression:

Stored size: 303 Bytes

Contents

module FuturesPipeline
  module Request
    def get(path, options={})
      request(:get, path, options)
    end

    private

    def request(method, path, options)
      response = connection.send(method) do |request|
        request.url(path, options)
      end
      response.body
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
futures_pipeline-0.2.1 lib/futures_pipeline/request.rb
futures_pipeline-0.2.0 lib/futures_pipeline/request.rb
futures_pipeline-0.1.2 lib/futures_pipeline/request.rb
futures_pipeline-0.1.1 lib/futures_pipeline/request.rb
futures_pipeline-0.1.0 lib/futures_pipeline/request.rb
futures_pipeline-0.0.4 lib/futures_pipeline/request.rb
futures_pipeline-0.0.3 lib/futures_pipeline/request.rb
futures_pipeline-0.0.2 lib/futures_pipeline/request.rb
futures_pipeline-0.0.1 lib/futures_pipeline/request.rb