Class: OrlandoEvents::MonthEvents
- Inherits:
-
Object
- Object
- OrlandoEvents::MonthEvents
- Defined in:
- lib/orlando_events/month_events.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#event_location ⇒ Object
Returns the value of attribute event_location.
-
#event_title ⇒ Object
Returns the value of attribute event_title.
-
#month ⇒ Object
Returns the value of attribute month.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(months_hash, month) ⇒ MonthEvents
constructor
A new instance of MonthEvents.
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
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/orlando_events/month_events.rb', line 2 def date @date end |
#event_location ⇒ Object
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_title ⇒ Object
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 |
#month ⇒ Object
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
.all ⇒ Object
18 19 20 |
# File 'lib/orlando_events/month_events.rb', line 18 def self.all @@all end |