Sha256: 4ec80e78dd6cb71174f59a22db30620b916074d0fbaeabe6dfb0f7abb0b7a5cb

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

module Gems
  module Request
    def get(path, options={}, format=:json)
      request(:get, path, options, format)
    end

    private

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gems-0.0.3 lib/gems/request.rb