Class: Capybara::Poltergeist::NetworkTraffic::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/capybara/poltergeist/network_traffic/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Error

Returns a new instance of Error.



5
6
7
# File 'lib/capybara/poltergeist/network_traffic/error.rb', line 5

def initialize(data)
  @data = data
end

Instance Method Details

#codeObject



13
14
15
# File 'lib/capybara/poltergeist/network_traffic/error.rb', line 13

def code
  @data['errorCode']
end

#descriptionObject



17
18
19
# File 'lib/capybara/poltergeist/network_traffic/error.rb', line 17

def description
  @data['errorString']
end

#urlObject



9
10
11
# File 'lib/capybara/poltergeist/network_traffic/error.rb', line 9

def url
  @data['url']
end