Class: VideoGrabber::Configuration
- Inherits:
-
Object
- Object
- VideoGrabber::Configuration
- Defined in:
- lib/video_grabber/config.rb
Instance Attribute Summary collapse
-
#browser ⇒ Object
Returns the value of attribute browser.
-
#firefox_extension_path ⇒ Object
Returns the value of attribute firefox_extension_path.
-
#headless_enabled ⇒ Object
Returns the value of attribute headless_enabled.
-
#html_attributes ⇒ Object
Returns the value of attribute html_attributes.
-
#keep_browser_open ⇒ Object
Returns the value of attribute keep_browser_open.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#browser ⇒ Object
Returns the value of attribute browser.
25 26 27 |
# File 'lib/video_grabber/config.rb', line 25 def browser @browser end |
#firefox_extension_path ⇒ Object
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_enabled ⇒ Object
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_attributes ⇒ Object
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_open ⇒ Object
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 |
#timeout ⇒ Object
Returns the value of attribute timeout.
25 26 27 |
# File 'lib/video_grabber/config.rb', line 25 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url.
25 26 27 |
# File 'lib/video_grabber/config.rb', line 25 def url @url end |