module HTTParty::ClassMethods

def get(path, options = {}, &block)

Foo.get('http://foo.com/resource.json', query: {limit: 10})
# ie: http://foo.com/resource.json?limit=10
# Simple get with full url and query parameters

Foo.get('http://foo.com/resource.json')
# Simple get with full url

end
include HTTParty
class Foo

Allows making a get request to a url.
def get(path, options = {}, &block)
  perform_request Net::HTTP::Get, path, options, &block
end