Class: Timetrap::Formatters::Ids
- Inherits:
-
Object
- Object
- Timetrap::Formatters::Ids
- Defined in:
- lib/timetrap/formatters/ids.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(entries) ⇒ Ids
constructor
A new instance of Ids.
Constructor Details
#initialize(entries) ⇒ Ids
Returns a new instance of Ids.
6 7 8 |
# File 'lib/timetrap/formatters/ids.rb', line 6 def initialize entries @output = entries.map(&:id).join(' ') end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
4 5 6 |
# File 'lib/timetrap/formatters/ids.rb', line 4 def output @output end |