Class: Selenium::WebDriver::BiDi::FilterBy
- Inherits:
-
Object
- Object
- Selenium::WebDriver::BiDi::FilterBy
- Defined in:
- rb/lib/selenium/webdriver/bidi/log/filter_by.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(level) ⇒ FilterBy
constructor
A new instance of FilterBy.
Constructor Details
#initialize(level) ⇒ FilterBy
Returns a new instance of FilterBy.
26 27 28 |
# File 'rb/lib/selenium/webdriver/bidi/log/filter_by.rb', line 26 def initialize(level) @level = level end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
24 25 26 |
# File 'rb/lib/selenium/webdriver/bidi/log/filter_by.rb', line 24 def level @level end |
Class Method Details
.log_level(level = nil) ⇒ Object
30 31 32 33 34 35 36 |
# File 'rb/lib/selenium/webdriver/bidi/log/filter_by.rb', line 30 def self.log_level(level = nil) unless %w[debug error info warning].include?(level) raise Error::WebDriverError, "Valid log levels are 'debug', 'error', 'info' and 'warning'. Received: #{level}" end FilterBy.new(level) end |