Class: NiwaTextream::MainPage
- Inherits:
-
Object
- Object
- NiwaTextream::MainPage
- Defined in:
- lib/niwa_textream/pages/main/main_page.rb
Direct Known Subclasses
CategoryPage, MessageHeader, MessagePage, ThreadPage, TopPage
Constant Summary collapse
- @@url =
nil
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
-
.goTo(mechanize) ⇒ Object
go to page by using mechanize.
- .url ⇒ Object
Instance Method Summary collapse
-
#initialize(mechanize) ⇒ MainPage
constructor
A new instance of MainPage.
Constructor Details
#initialize(mechanize) ⇒ MainPage
Returns a new instance of MainPage.
15 16 17 |
# File 'lib/niwa_textream/pages/main/main_page.rb', line 15 def initialize(mechanize) @mechanize = mechanize end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/niwa_textream/pages/main/main_page.rb', line 3 def url @url end |
Class Method Details
.goTo(mechanize) ⇒ Object
go to page by using mechanize
20 21 22 |
# File 'lib/niwa_textream/pages/main/main_page.rb', line 20 def self.goTo(mechanize) @page = mechanize.get(@@url) end |
.url ⇒ Object
24 25 26 |
# File 'lib/niwa_textream/pages/main/main_page.rb', line 24 def self.url @@url end |