Class: Selenium::WebDriver::BiDi::InterceptedItem Private

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/bidi/network/intercepted_item.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(network, request) ⇒ InterceptedItem

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of InterceptedItem.



30
31
32
33
# File 'lib/selenium/webdriver/bidi/network/intercepted_item.rb', line 30

def initialize(network, request)
  @network = network
  @request = request
end

Instance Attribute Details

#networkObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
# File 'lib/selenium/webdriver/bidi/network/intercepted_item.rb', line 28

def network
  @network
end

#requestObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
# File 'lib/selenium/webdriver/bidi/network/intercepted_item.rb', line 28

def request
  @request
end

Instance Method Details

#idObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'lib/selenium/webdriver/bidi/network/intercepted_item.rb', line 35

def id
  @id ||= @request['request']
end