Class: Hobos::Browser
- Inherits:
-
Object
- Object
- Hobos::Browser
- Defined in:
- lib/hobos.rb
Instance Attribute Summary collapse
-
#browser ⇒ Object
Returns the value of attribute browser.
-
#hobos_list ⇒ Object
Returns the value of attribute hobos_list.
Instance Method Summary collapse
-
#initialize ⇒ Browser
constructor
A new instance of Browser.
Constructor Details
#initialize ⇒ Browser
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
#browser ⇒ Object
Returns the value of attribute browser.
35 36 37 |
# File 'lib/hobos.rb', line 35 def browser @browser end |
#hobos_list ⇒ Object
Returns the value of attribute hobos_list.
36 37 38 |
# File 'lib/hobos.rb', line 36 def hobos_list @hobos_list end |