Exception: Ferrum::BrowserError

Inherits:
Error
  • Object
show all
Defined in:
lib/ferrum.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



65
66
67
# File 'lib/ferrum.rb', line 65

def response
  @response
end

Instance Method Details

#codeObject



72
73
74
# File 'lib/ferrum.rb', line 72

def code
  response["code"]
end

#dataObject



76
77
78
# File 'lib/ferrum.rb', line 76

def data
  response["data"]
end