Exception: Ferrum::BrowserError
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.
54 55 56 57 |
# File 'lib/ferrum.rb', line 54 def initialize(response) @response = response super(response["message"]) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
52 53 54 |
# File 'lib/ferrum.rb', line 52 def response @response end |
Instance Method Details
#code ⇒ Object
59 60 61 |
# File 'lib/ferrum.rb', line 59 def code response["code"] end |
#data ⇒ Object
63 64 65 |
# File 'lib/ferrum.rb', line 63 def data response["data"] end |