Class: ImpactHubEvents::Event
- Inherits:
-
Object
- Object
- ImpactHubEvents::Event
- Defined in:
- lib/impact_hub_events/event.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#location ⇒ Object
Returns the value of attribute location.
-
#time ⇒ Object
Returns the value of attribute time.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(url) ⇒ Event
constructor
A new instance of Event.
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
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/impact_hub_events/event.rb', line 2 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/impact_hub_events/event.rb', line 2 def description @description end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/impact_hub_events/event.rb', line 2 def location @location end |
#time ⇒ Object
Returns the value of attribute time.
2 3 4 |
# File 'lib/impact_hub_events/event.rb', line 2 def time @time end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/impact_hub_events/event.rb', line 2 def title @title end |
#url ⇒ Object
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
.all ⇒ Object
10 11 12 |
# File 'lib/impact_hub_events/event.rb', line 10 def self.all @@all end |