Class: Timetrack::Transform::UnassociatedEvent Private

Inherits:
Object
  • Object
show all
Defined in:
lib/timetrack/transform.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.

Intermediate event representation before it’s been associated with a date

Instance Method Summary collapse

Instance Method Details

#to_event(date) ⇒ 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.



25
26
27
28
29
30
31
32
# File 'lib/timetrack/transform.rb', line 25

def to_event(date)
  Event.new(
    with(
      begin: self.begin.to_time(date),
      end: self.end.to_time(date)
    ).to_h
  )
end