class OrlandoEvents::MonthEvents
Attributes
date[RW]
event_location[RW]
event_title[RW]
month[RW]
Public Class Methods
all()
click to toggle source
# File lib/orlando_events/month_events.rb, line 18 def self.all @@all end
new(months_hash, month)
click to toggle source
# File lib/orlando_events/month_events.rb, line 5 def initialize(months_hash, month) months_hash.each do |k, v| self.send "#{k}=", v end self.month = month @@all << self end
Public Instance Methods
month=(month)
click to toggle source
# File lib/orlando_events/month_events.rb, line 13 def month=(month) @month = month month.add_events(self) end