Sha256: 6910a70366366bb45d4cae59e76780822036237f1dc398f4b58a8b2a0eccbbec

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

module Ares
  module Http
    def get(url, params = {})
      response = HTTParty.get(url, query: params)
      response.body
    end

    def post(url, params = {})
      response = HTTParty.post(url, query: params)
      response.body
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ares.rb-0.3.0 lib/ares/http.rb
ares.rb-0.2.0 lib/ares/http.rb
ares.rb-0.1.0 lib/ares/http.rb