class SdEvents::Events
Attributes
category[RW]
location[RW]
name[RW]
time[RW]
venue[RW]
Public Class Methods
all()
click to toggle source
# File lib/sd_events/events.rb, line 9 def self.all @@all end
clear()
click to toggle source
# File lib/sd_events/events.rb, line 13 def self.clear @@all.clear end
create_daypart(event_time)
click to toggle source
# File lib/sd_events/events.rb, line 27 def self.create_daypart(event_time) #=> "afternoon" SdEvents::Scraper.scrape_daypart(event_time) #=> "SdEvents::Scraper.scrape_daypart("afternoon")" self.empty? end
empty?()
click to toggle source
# File lib/sd_events/events.rb, line 21 def self.empty? if @@all.empty? SdEvents::CLI.no_events end end
find(id)
click to toggle source
# File lib/sd_events/events.rb, line 17 def self.find(id) self.all[id.to_i-1] end
new()
click to toggle source
# File lib/sd_events/events.rb, line 5 def initialize @@all << self end