Class: DashOverlord::Serializers::V1::SubtitleLines::Show

Inherits:
Base
  • Object
show all
Defined in:
lib/dash_overlord/serializers/v1/subtitle_lines/show.rb

Constant Summary

Constants inherited from Base

Base::RAILS_HTTP_STATUS

Instance Attribute Summary

Attributes inherited from Base

#object, #options

Instance Method Summary collapse

Methods inherited from Base

#errors, #has_errors

Methods inherited from Base

attributes, expose, #initialize, root, root_name, serialize, #serialize, to_hash

Constructor Details

This class inherits a constructor from DashOverlord::Serializers::Base

Instance Method Details

#end_timeObject



19
20
21
22
23
# File 'lib/dash_overlord/serializers/v1/subtitle_lines/show.rb', line 19

def end_time
  return if object.tag?

  seconds_from(object.end_time)
end

#start_timeObject



15
16
17
# File 'lib/dash_overlord/serializers/v1/subtitle_lines/show.rb', line 15

def start_time
  seconds_from(object.start_time)
end