Class: Osb::Video
- Inherits:
-
Object
- Object
- Osb::Video
- Defined in:
- lib/osb/video.rb
Overview
A video.
Instance Attribute Summary collapse
- #commands ⇒ Object readonly private
- #layer ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(file_path:, start_time:) ⇒ Video
constructor
A new instance of Video.
Constructor Details
#initialize(file_path:, start_time:) ⇒ Video
Returns a new instance of Video.
9 10 11 12 13 14 15 |
# File 'lib/osb/video.rb', line 9 def initialize(file_path:, start_time:) Internal.assert_type!(file_path, String, "file_path") Internal.assert_file_name_ext!(file_path, %w[png jpg jpeg]) Internal.assert_type!(start_time, Integer, "start_time") @command = "1,#{start_time},\"#{file_path}\"" end |
Instance Attribute Details
#commands ⇒ Object (readonly)
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.
5 6 7 |
# File 'lib/osb/video.rb', line 5 def commands @commands end |
#layer ⇒ Object (readonly)
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.
5 6 7 |
# File 'lib/osb/video.rb', line 5 def layer @layer end |