Module: Kernel

Defined in:
lib/typhoeus/simple.rb

Instance Method Summary collapse

Instance Method Details

#get(uri, params = {}) ⇒ Object



7
8
9
# File 'lib/typhoeus/simple.rb', line 7

def get uri, params = {}
  Typhoeus::Request.get(uri, params)
end

#get_parsed(uri, params = {}, encoding = "UTF-8") ⇒ Object



11
12
13
# File 'lib/typhoeus/simple.rb', line 11

def get_parsed uri, params = {}, encoding = "UTF-8"
  Nokogiri::HTML(get(uri, params).body, uri, encoding)
end