Method: Selenium::WebDriver::Remote::Response#initialize

Defined in:
lib/selenium/webdriver/remote/response.rb

#initialize(code, payload = nil) ⇒ Response

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 Response.



11
12
13
14
15
16
# File 'lib/selenium/webdriver/remote/response.rb', line 11

def initialize(code, payload = nil)
  @code    = code
  @payload = payload || {}

  assert_ok
end