Class: CarrierWave::Video::Thumbnailer::FFMpegThumbnailerOptions
- Inherits:
-
Object
- Object
- CarrierWave::Video::Thumbnailer::FFMpegThumbnailerOptions
- Defined in:
- lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
readonly
Returns the value of attribute callbacks.
-
#custom ⇒ Object
readonly
Returns the value of attribute custom.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ FFMpegThumbnailerOptions
constructor
A new instance of FFMpegThumbnailerOptions.
- #to_cli ⇒ Object
Constructor Details
#initialize(options) ⇒ FFMpegThumbnailerOptions
Returns a new instance of FFMpegThumbnailerOptions.
55 56 57 58 59 60 61 |
# File 'lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb', line 55 def initialize @callbacks = .delete(:callbacks) || {} @custom = .delete :custom @format = .delete :format @logger = .delete :logger @options = Options.new end |
Instance Attribute Details
#callbacks ⇒ Object (readonly)
Returns the value of attribute callbacks.
53 54 55 |
# File 'lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb', line 53 def callbacks @callbacks end |
#custom ⇒ Object (readonly)
Returns the value of attribute custom.
53 54 55 |
# File 'lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb', line 53 def custom @custom end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
53 54 55 |
# File 'lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb', line 53 def format @format end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
53 54 55 |
# File 'lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb', line 53 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
53 54 55 |
# File 'lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb', line 53 def @options end |
Instance Method Details
#to_cli ⇒ Object
63 64 65 |
# File 'lib/carrierwave/video/thumbnailer/ffmpegthumbnailer/options.rb', line 63 def to_cli %Q{#{"-c #{format} " if format}#{@options.to_cli}#{" #{custom}" if custom}} end |