Sha256: b09ab977b4a2f7992f3b96a8f71fda788c3d7b53e8e0f70ad84dc70579348d0d

Contents?: true

Size: 239 Bytes

Versions: 1

Compression:

Stored size: 239 Bytes

Contents

require 'open-uri'

module Razsell
  # Class that wraps http calls
  class HttpService
    def get query
      if query.class == String
        url = query
      else
        url = query.to_url
      end

      open(url)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
razsell-0.0.11 lib/razsell/http_service.rb