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.
67 68 69 70 |
# File 'lib/ferrum.rb', line 67 def initialize(response) @response = response super(response["message"]) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
65 66 67 |
# File 'lib/ferrum.rb', line 65 def response @response end |
Instance Method Details
#code ⇒ Object
72 73 74 |
# File 'lib/ferrum.rb', line 72 def code response["code"] end |
#data ⇒ Object
76 77 78 |
# File 'lib/ferrum.rb', line 76 def data response["data"] end |