forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rb] Extend RBS support for logger and log entry (SeleniumHQ#13192)
* Extend RBS support for logger and log entry * Update allowed to match the instance type * Change as_json to untyped and nillable --------- Co-authored-by: aguspe <[email protected]> Co-authored-by: Titus Fortner <[email protected]>
- Loading branch information
1 parent
c806757
commit 36585d1
Showing
4 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module Selenium | ||
module WebDriver | ||
class LogEntry | ||
@level: String | ||
|
||
@timestamp: Integer | ||
|
||
@message: String | ||
|
||
attr_reader level: String | ||
|
||
attr_reader timestamp: Integer | ||
|
||
attr_reader message: String | ||
|
||
def initialize: (String level, Integer timestamp, String message) -> void | ||
|
||
def as_json: (*untyped?) -> Hash[String, Integer | String] | ||
|
||
def to_s: () -> String | ||
|
||
def time: () -> Time | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters