Sha256: c7f97b3699c4f709f29db8e3c101eb0a4e2fc339cdf718676280d23ecba39b7a
Contents?: true
Size: 686 Bytes
Versions: 1
Compression:
Stored size: 686 Bytes
Contents
class OrlandoEvents::Event attr_accessor :name, :events, :month_url @@all = [] def initialize(month_hash) @events = [] month_hash.each do |k,v| self.send "#{k}=", v end @@all << self end def self.create_from_collection(months_array) months_array.each do |month| self.new(month) # binding.pry end end def add_event_details(events_array) events_array.each do |event_hash| OrlandoEvents::MonthEvents.new(event_hash, self) end self end def add_events(month_events) month_events.month = self if !month_events.month @events << month_events # binding.pry end def self.all @@all end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orlando_events-0.1.5 | lib/orlando_events/event.rb |