Class: VideoGrabber::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/video_grabber/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



28
29
30
31
32
33
34
# File 'lib/video_grabber/config.rb', line 28

def initialize
  @keep_browser_open = false
  @timeout           = 60
  @headless_enabled  = true
  @html_attributes   = { controls: true }
  @browser           = :firefox
end

Instance Attribute Details

#browserObject

Returns the value of attribute browser.



25
26
27
# File 'lib/video_grabber/config.rb', line 25

def browser
  @browser
end

#firefox_extension_pathObject

Returns the value of attribute firefox_extension_path.



25
26
27
# File 'lib/video_grabber/config.rb', line 25

def firefox_extension_path
  @firefox_extension_path
end

#headless_enabledObject

Returns the value of attribute headless_enabled.



25
26
27
# File 'lib/video_grabber/config.rb', line 25

def headless_enabled
  @headless_enabled
end

#html_attributesObject

Returns the value of attribute html_attributes.



25
26
27
# File 'lib/video_grabber/config.rb', line 25

def html_attributes
  @html_attributes
end

#keep_browser_openObject

Returns the value of attribute keep_browser_open.



25
26
27
# File 'lib/video_grabber/config.rb', line 25

def keep_browser_open
  @keep_browser_open
end

#timeoutObject

Returns the value of attribute timeout.



25
26
27
# File 'lib/video_grabber/config.rb', line 25

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



25
26
27
# File 'lib/video_grabber/config.rb', line 25

def url
  @url
end