module HTTParty::ClassMethods
def get(path, options={})
# 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={}) perform_request Net::HTTP::Get, path, options end