Sha256: c424f2ffca37554eb9891be84e73720cca3f19e20e7ac0b469d82082615c213f

Contents?: true

Size: 295 Bytes

Versions: 5

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

module Capybara::Poltergeist::NetworkTraffic
  class Error
    def initialize(data)
      @data = data
    end

    def url
      @data['url']
    end

    def code
      @data['errorCode']
    end

    def description
      @data['errorString']
    end
  end
end

Version data entries

5 entries across 4 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/poltergeist-1.18.1/lib/capybara/poltergeist/network_traffic/error.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/poltergeist-1.18.1/lib/capybara/poltergeist/network_traffic/error.rb
poltergeist-1.18.1 lib/capybara/poltergeist/network_traffic/error.rb
poltergeist-1.18.0 lib/capybara/poltergeist/network_traffic/error.rb
poltergeist-1.17.0 lib/capybara/poltergeist/network_traffic/error.rb