Class: Event

Inherits:
Object
  • Object
show all
Defined in:
lib/tree_people/event.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEvent

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

#categoryObject

Returns the value of attribute category.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def category
  @category
end

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def date
  @date
end

#dayObject

Returns the value of attribute day.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def day
  @day
end

#descriptionObject

Returns the value of attribute description.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def description
  @description
end

#end_timeObject

Returns the value of attribute end_time.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def end_time
  @end_time
end

#locationObject

Returns the value of attribute location.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def location
  @location
end

#monthObject

Returns the value of attribute month.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def month
  @month
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def name
  @name
end

#numberObject

Returns the value of attribute number.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def number
  @number
end

#spots_openObject

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_timeObject

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_dayObject

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

#urlObject

Returns the value of attribute url.



2
3
4
# File 'lib/tree_people/event.rb', line 2

def url
  @url
end

Class Method Details

.allObject



10
11
12
# File 'lib/tree_people/event.rb', line 10

def self.all
  @@all
end