class EventsToday::Event
Attributes
description[RW]
genre[RW]
location[RW]
name[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/events_today/event.rb, line 15 def self.all @@all = @@all[0..5] end
new(name, genre, location, description, url)
click to toggle source
# File lib/events_today/event.rb, line 6 def initialize(name, genre, location, description, url) @name = name @genre = genre @location = location @description = description @url = url @@all << self end