Class: OrlandoEvents::MonthEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/orlando_events/month_events.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(months_hash, month) ⇒ MonthEvents

Returns a new instance of MonthEvents.



5
6
7
8
9
10
11
# 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

Instance Attribute Details

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/orlando_events/month_events.rb', line 2

def date
  @date
end

#event_locationObject

Returns the value of attribute event_location.



2
3
4
# File 'lib/orlando_events/month_events.rb', line 2

def event_location
  @event_location
end

#event_titleObject

Returns the value of attribute event_title.



2
3
4
# File 'lib/orlando_events/month_events.rb', line 2

def event_title
  @event_title
end

#monthObject

Returns the value of attribute month.



2
3
4
# File 'lib/orlando_events/month_events.rb', line 2

def month
  @month
end

Class Method Details

.allObject



18
19
20
# File 'lib/orlando_events/month_events.rb', line 18

def self.all
  @@all
end