Class: Capybara::Poltergeist::NetworkTraffic::Error
- Inherits:
-
Object
- Object
- Capybara::Poltergeist::NetworkTraffic::Error
- Defined in:
- lib/capybara/poltergeist/network_traffic/error.rb
Instance Method Summary collapse
- #code ⇒ Object
- #description ⇒ Object
-
#initialize(data) ⇒ Error
constructor
A new instance of Error.
- #url ⇒ Object
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
#code ⇒ Object
13 14 15 |
# File 'lib/capybara/poltergeist/network_traffic/error.rb', line 13 def code @data['errorCode'] end |
#description ⇒ Object
17 18 19 |
# File 'lib/capybara/poltergeist/network_traffic/error.rb', line 17 def description @data['errorString'] end |
#url ⇒ Object
9 10 11 |
# File 'lib/capybara/poltergeist/network_traffic/error.rb', line 9 def url @data['url'] end |