Class: ScheduleScraper::Pointstreak::Schedule
- Inherits:
-
Nibbler
- Object
- Nibbler
- ScheduleScraper::Pointstreak::Schedule
show all
- Includes:
- Schedule
- Defined in:
- lib/schedule-scraper/pointstreak/schedule.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Schedule
included, #to_csv, #to_gcal, #to_ical, #to_ycal
Class Method Details
.fetch(url) ⇒ Object
10
11
12
|
# File 'lib/schedule-scraper/pointstreak/schedule.rb', line 10
def self.fetch(url)
parse open(url)
end
|
Instance Method Details
#events ⇒ Object
14
15
16
|
# File 'lib/schedule-scraper/pointstreak/schedule.rb', line 14
def events
list.event_list.reject { |event| event.away_team.nil? }
end
|