Class: Osb::Video
- Inherits:
-
Object
- Object
- Osb::Video
- Defined in:
- lib/osb/video.rb
Overview
Background video.
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, "mp4") Internal.assert_type!(start_time, Integer, "start_time") @command = "1,#{start_time},\"#{file_path}\"" end |