Class: Event
- Inherits:
-
Object
- Object
- Event
- Defined in:
- lib/tree_people/event.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#date ⇒ Object
Returns the value of attribute date.
-
#day ⇒ Object
Returns the value of attribute day.
-
#description ⇒ Object
Returns the value of attribute description.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#location ⇒ Object
Returns the value of attribute location.
-
#month ⇒ Object
Returns the value of attribute month.
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#spots_open ⇒ Object
Returns the value of attribute spots_open.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#time_of_day ⇒ Object
Returns the value of attribute time_of_day.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize ⇒ Event
Returns a new instance of Event.
6 7 8 |
# File 'lib/tree_people/event.rb', line 6 def initialize @@all << self end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def category @category end |
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def date @date end |
#day ⇒ Object
Returns the value of attribute day.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def day @day end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def description @description end |
#end_time ⇒ Object
Returns the value of attribute end_time.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def end_time @end_time end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def location @location end |
#month ⇒ Object
Returns the value of attribute month.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def month @month end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def number @number end |
#spots_open ⇒ Object
Returns the value of attribute spots_open.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def spots_open @spots_open end |
#start_time ⇒ Object
Returns the value of attribute start_time.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def start_time @start_time end |
#time_of_day ⇒ Object
Returns the value of attribute time_of_day.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def time_of_day @time_of_day end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/tree_people/event.rb', line 2 def url @url end |
Class Method Details
.all ⇒ Object
10 11 12 |
# File 'lib/tree_people/event.rb', line 10 def self.all @@all end |