Sha256: 9189f6ef1143fa6809278bdcfdd5f06c32872f182a29e6b669757529fe8c7ab5

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
hn_api-0.0.1 lib/hn/request.rb