Sha256: 8c2050f4bfd84fc455db41b5d870729911b038a048fc0a925b8106e92f70fe37

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
commons-0.0.3 lib/commons/request.rb
commons-0.0.2 lib/commons/request.rb
commons-0.0.1 lib/commons/request.rb