class BarchartData::BarchartConnection
Attributes
mechanize[RW]
Public Class Methods
new()
click to toggle source
# File lib/barchart_scripts/barchart_connection.rb, line 7 def initialize @mechanize = Mechanize.new @mechanize.user_agent = 'Mac FireFox' end
Public Instance Methods
fetch_page(url)
click to toggle source
# File lib/barchart_scripts/barchart_connection.rb, line 12 def fetch_page(url) @mechanize.get(url) end