Class: ChromeDebugger::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/chrome_debugger/notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject (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_idObject



15
16
17
# File 'lib/chrome_debugger/notification.rb', line 15

def request_id
  @params['requestId']
end

#resource_typeObject



11
12
13
# File 'lib/chrome_debugger/notification.rb', line 11

def resource_type
  @params['type']
end