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.
30 31 32 33 |
# File 'lib/hobos.rb', line 30 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.
27 28 29 |
# File 'lib/hobos.rb', line 27 def browser @browser end |
#hobos_list ⇒ Object
Returns the value of attribute hobos_list.
28 29 30 |
# File 'lib/hobos.rb', line 28 def hobos_list @hobos_list end |