class Selenium::WebDriver::DevTools::Request
def self.from(id, params)
def self.from(id, params) new( id: id, url: params.dig('request', 'url'), method: params.dig('request', 'method'), headers: params.dig('request', 'headers').dup, post_data: params.dig('request', 'postData') ) end
def ==(other)
def ==(other) self.class == other.class && id == other.id && url == other.url && method == other.method && headers == other.headers && post_data == other.post_data end
def initialize(id:, url:, method:, headers:, post_data:)
def initialize(id:, url:, method:, headers:, post_data:) @id = id @url = url @method = method @headers = headers @post_data = post_data end
def inspect
def inspect %(#<#{self.class.name} @id="#{id}" @method="#{method}" @url="#{url}") end