Class: ChromeDebugger::Notification
- Inherits:
-
Object
- Object
- ChromeDebugger::Notification
- Defined in:
- lib/chrome_debugger/notification.rb
Direct Known Subclasses
DataReceived, DomContentEventFired, LoadEventFired, RequestWillBeSent, ResponseReceived
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(point) ⇒ Notification
constructor
A new instance of Notification.
- #request_id ⇒ Object
- #resource_type ⇒ Object
Constructor Details
#initialize(point) ⇒ Notification
Returns a new instance of Notification.
6 7 8 9 |
# File 'lib/chrome_debugger/notification.rb', line 6 def initialize(point) @params = point['params'] || {} @method = point['method'] end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/chrome_debugger/notification.rb', line 4 def method @method end |
Instance Method Details
#request_id ⇒ Object
15 16 17 |
# File 'lib/chrome_debugger/notification.rb', line 15 def request_id @params['requestId'] end |
#resource_type ⇒ Object
11 12 13 |
# File 'lib/chrome_debugger/notification.rb', line 11 def resource_type @params['type'] end |