Class: Timetrap::Formatters::Ids

Inherits:
Object
  • Object
show all
Defined in:
lib/timetrap/formatters/ids.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outputObject (readonly)

Returns the value of attribute output.



4
5
6
# File 'lib/timetrap/formatters/ids.rb', line 4

def output
  @output
end