Sha256: 802d55a04f93e93d71ba58897aafaa71e429d7ff57402393adb793921a2c0e17

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 Bytes

Contents

module DirectEmployers
  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.merge(:key => @key))
      end
      response.body
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
direct_employers-0.0.6 lib/direct_employers/request.rb
direct_employers-0.0.5 lib/direct_employers/request.rb
direct_employers-0.0.4 lib/direct_employers/request.rb
direct_employers-0.0.3 lib/direct_employers/request.rb
direct_employers-0.0.2 lib/direct_employers/request.rb