Class: Lightpanda::Capybara::Configuration
- Inherits:
-
Object
- Object
- Lightpanda::Capybara::Configuration
- Defined in:
- lib/lightpanda/capybara.rb
Instance Attribute Summary collapse
-
#browser_path ⇒ Object
Returns the value of attribute browser_path.
-
#headless ⇒ Object
Returns the value of attribute headless.
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 28 29 30 |
# File 'lib/lightpanda/capybara.rb', line 24 def initialize @host = "127.0.0.1" @port = 9222 @timeout = 5 @headless = true @browser_path = nil end |
Instance Attribute Details
#browser_path ⇒ Object
Returns the value of attribute browser_path.
22 23 24 |
# File 'lib/lightpanda/capybara.rb', line 22 def browser_path @browser_path end |
#headless ⇒ Object
Returns the value of attribute headless.
22 23 24 |
# File 'lib/lightpanda/capybara.rb', line 22 def headless @headless end |
#host ⇒ Object
Returns the value of attribute host.
22 23 24 |
# File 'lib/lightpanda/capybara.rb', line 22 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
22 23 24 |
# File 'lib/lightpanda/capybara.rb', line 22 def port @port end |
#timeout ⇒ Object
Returns the value of attribute timeout.
22 23 24 |
# File 'lib/lightpanda/capybara.rb', line 22 def timeout @timeout end |
Instance Method Details
#to_h ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/lightpanda/capybara.rb', line 32 def to_h { host: host, port: port, timeout: timeout, browser_path: browser_path } end |