Class: Mediakit::FFmpeg::Options::OptionPathPair

Inherits:
Object
  • Object
show all
Defined in:
lib/mediakit/ffmpeg/options.rb

Direct Known Subclasses

InputFileOption, OutputFileOption

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options:, path:) ⇒ OptionPathPair

Returns a new instance of OptionPathPair.



113
114
115
116
# File 'lib/mediakit/ffmpeg/options.rb', line 113

def initialize(options:, path:)
  @options = options
  @path    = path
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



111
112
113
# File 'lib/mediakit/ffmpeg/options.rb', line 111

def options
  @options
end

#pathObject (readonly)

Returns the value of attribute path.



111
112
113
# File 'lib/mediakit/ffmpeg/options.rb', line 111

def path
  @path
end

Instance Method Details

#composeObject

Raises:

  • (NotImplementedError)


118
119
120
# File 'lib/mediakit/ffmpeg/options.rb', line 118

def compose
  raise(NotImplementedError)
end

#to_sObject



122
123
124
# File 'lib/mediakit/ffmpeg/options.rb', line 122

def to_s
  compose
end