Sha256: e603bdb5d1cf2df9e24f9cc71e71b7ef240f1d7a7aecb3190d6dbd37e9350024
Contents?: true
Size: 860 Bytes
Versions: 3
Compression:
Stored size: 860 Bytes
Contents
module VideoGrabber # Access point for the gem configurations. # # @return [VideoGrabber::Configuration] a configuration instance. def self.config @config ||= Configuration.new end # Configure hook used in the gem initializer. Convinient way to set all the # gem configurations. # # example: # VideoGrabber.configure do |config| # config.timeout = 60 # end # # @return [void] def self.configure yield config if block_given? end class Configuration attr_accessor :url, :keep_browser_open, :timeout, :headless_enabled, :firefox_extension_path, :html_attributes, :browser def initialize @keep_browser_open = false @timeout = 60 @headless_enabled = true @html_attributes = { controls: true } @browser = :firefox end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
video_grabber-1.9 | lib/video_grabber/config.rb |
video_grabber-1.8.6 | lib/video_grabber/config.rb |
video_grabber-1.8.0 | lib/video_grabber/config.rb |