Class: Hobos::Browser

Inherits:
Object
  • Object
show all
Defined in:
lib/hobos.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBrowser

Returns a new instance of Browser.



38
39
40
41
# File 'lib/hobos.rb', line 38

def initialize
  @browser = Mechanize.new
  @hobos_list = @browser.get("http://www.e-hobo.com/hoboes/list/")
end

Instance Attribute Details

#browserObject

Returns the value of attribute browser.



35
36
37
# File 'lib/hobos.rb', line 35

def browser
  @browser
end

#hobos_listObject

Returns the value of attribute hobos_list.



36
37
38
# File 'lib/hobos.rb', line 36

def hobos_list
  @hobos_list
end