Class: Trackerific::Event
- Inherits:
-
Struct
- Object
- Struct
- Trackerific::Event
- Defined in:
- lib/trackerific/event.rb
Overview
Provides details for a tracking event
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.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the event into a string.
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
3 4 5 |
# File 'lib/trackerific/event.rb', line 3 def date @date end |
#description ⇒ Object
Returns the value of attribute description
3 4 5 |
# File 'lib/trackerific/event.rb', line 3 def description @description end |
#location ⇒ Object
Returns the value of attribute location
3 4 5 |
# File 'lib/trackerific/event.rb', line 3 def location @location end |
Instance Method Details
#to_s ⇒ String
Converts the event into a string
9 10 11 12 13 14 |
# File 'lib/trackerific/event.rb', line 9 def to_s [ date.strftime('%b %d %I:%M %P'), description, location ].join(" ") end |