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.
48 49 50 51 |
# File 'lib/ferrum.rb', line 48 def initialize(response) @response = response super(response["message"]) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
46 47 48 |
# File 'lib/ferrum.rb', line 46 def response @response end |
Instance Method Details
#code ⇒ Object
53 54 55 |
# File 'lib/ferrum.rb', line 53 def code response["code"] end |
#data ⇒ Object
57 58 59 |
# File 'lib/ferrum.rb', line 57 def data response["data"] end |