Class: ImpactHubEvents::Event

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

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Event

Returns a new instance of Event.



5
6
7
8
# File 'lib/impact_hub_events/event.rb', line 5

def initialize(url)
  @url = url
  @@all << self
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



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

def date
  @date
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#timeObject

Returns the value of attribute time.



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

def time
  @time
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end

Class Method Details

.allObject



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

def self.all
  @@all
end