Sha256: 5f6c62681ef63b3cc60af5a68cbf5217b1827f21122d05c224ab259a8297c63c

Contents?: true

Size: 299 Bytes

Versions: 16

Compression:

Stored size: 299 Bytes

Contents

module Idonethis::Adapters
  module Internet
    class << self
      require 'restclient'

      def get(url, headers = {}, body = {})
        RestClient.get(url, headers)
      end

      def post(url, headers = {}, body = {})
        RestClient.post(url, body, headers)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
idonethis-cli-0.15.0 lib/adapters/internet.rb
idonethis-cli-0.14.2 lib/adapters/internet.rb
idonethis-cli-0.14.1 lib/adapters/internet.rb
idonethis-cli-0.14.0 lib/adapters/internet.rb
idonethis-cli-0.13.3 lib/adapters/internet.rb
idonethis-cli-0.13.2 lib/adapters/internet.rb
idonethis-cli-0.13.1 lib/adapters/internet.rb
idonethis-cli-0.13.0 lib/adapters/internet.rb
idonethis-cli-0.6.0 lib/adapters/internet.rb
idonethis-cli-0.5.0 lib/adapters/internet.rb
idonethis-cli-0.4.1 lib/adapters/internet.rb
idonethis-cli-0.4.0 lib/adapters/internet.rb
idonethis-cli-0.3.0 lib/adapters/internet.rb
idonethis-cli-0.2.2 lib/adapters/internet.rb
idonethis-cli-0.2.1 lib/adapters/internet.rb
idonethis-cli-0.2.0 lib/adapters/internet.rb