Class: Mutant::Segment Private

Inherits:
Object
  • Object
show all
Includes:
Unparser::Adamantium
Defined in:
lib/mutant/segment.rb,
lib/mutant/segment/recorder.rb

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.

Defined Under Namespace

Classes: Recorder

Instance Method Summary collapse

Instance Method Details

#elapsedObject

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.



13
14
15
# File 'lib/mutant/segment.rb', line 13

def elapsed
  timestamp_end - timestamp_start
end

#offset_end(recording_start) ⇒ 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.



21
22
23
# File 'lib/mutant/segment.rb', line 21

def offset_end(recording_start)
  timestamp_end - recording_start
end

#offset_start(recording_start) ⇒ 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.



17
18
19
# File 'lib/mutant/segment.rb', line 17

def offset_start(recording_start)
  timestamp_start - recording_start
end