Sha256: a6eccf43393898e088c2d3e98c7d16a47a102302be4773ada127dcbe30bf715a

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

module Gems
  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

2 entries across 2 versions & 1 rubygems

Version Path
gems-0.0.2 lib/gems/request.rb
gems-0.0.1 lib/gems/request.rb