Exception: Ferrum::BrowserError
- Defined in:
- lib/ferrum/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #code ⇒ Object
- #data ⇒ Object
-
#initialize(response) ⇒ BrowserError
constructor
A new instance of BrowserError.
Constructor Details
#initialize(response) ⇒ BrowserError
Returns a new instance of BrowserError.
91 92 93 94 |
# File 'lib/ferrum/errors.rb', line 91 def initialize(response) @response = response super(response["message"]) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
89 90 91 |
# File 'lib/ferrum/errors.rb', line 89 def response @response end |
Instance Method Details
#code ⇒ Object
96 97 98 |
# File 'lib/ferrum/errors.rb', line 96 def code response["code"] end |
#data ⇒ Object
100 101 102 |
# File 'lib/ferrum/errors.rb', line 100 def data response["data"] end |