Class: Fonecal::CalendarCrawler

Inherits:
Crawler
  • Object
show all
Defined in:
lib/fonecal/calendar_crawler.rb

Instance Attribute Summary

Attributes inherited from Crawler

#root, #site

Instance Method Summary collapse

Methods inherited from Crawler

#initialize

Constructor Details

This class inherits a constructor from Fonecal::Crawler

Instance Method Details



3
4
5
6
7
8
9
10
# File 'lib/fonecal/calendar_crawler.rb', line 3

def eventLinks
  eventLinks = []

  @site.css('table.raceCalender tr.row').each do |event|
    eventLinks << @root + event.css('td.raceLocation a').attr('href')
  end
  eventLinks
end