Class: Timetrack::Writer Private
- Inherits:
-
Object
- Object
- Timetrack::Writer
- Defined in:
- lib/timetrack/writer.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Stringify Events in a format suitable for writing to a file
Instance Attribute Summary collapse
- #events ⇒ Object readonly private
Instance Method Summary collapse
- #dump ⇒ Object private
-
#initialize(events:) ⇒ Writer
constructor
private
A new instance of Writer.
Constructor Details
#initialize(events:) ⇒ Writer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Writer.
7 8 9 |
# File 'lib/timetrack/writer.rb', line 7 def initialize(events:) @events = events end |
Instance Attribute Details
#events ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/timetrack/writer.rb', line 5 def events @events end |
Instance Method Details
#dump ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/timetrack/writer.rb', line 11 def dump days.join("\n\n") end |