Class: Fonecal::Crawler
- Inherits:
-
Object
- Object
- Fonecal::Crawler
- Defined in:
- lib/fonecal/crawler.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#root ⇒ Object
Returns the value of attribute root.
-
#site ⇒ Object
Returns the value of attribute site.
Instance Method Summary collapse
-
#initialize(site) ⇒ Crawler
constructor
A new instance of Crawler.
Constructor Details
#initialize(site) ⇒ Crawler
Returns a new instance of Crawler.
8 9 10 11 |
# File 'lib/fonecal/crawler.rb', line 8 def initialize(site) self.site = Nokogiri::HTML(open(site), nil, 'utf-8') self.root = Util.getRootUrl(site) end |
Instance Attribute Details
#root ⇒ Object
Returns the value of attribute root.
6 7 8 |
# File 'lib/fonecal/crawler.rb', line 6 def root @root end |
#site ⇒ Object
Returns the value of attribute site.
6 7 8 |
# File 'lib/fonecal/crawler.rb', line 6 def site @site end |