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.



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

def initialize(response)
  @response = response
  super(response["message"])
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



74
75
76
# File 'lib/ferrum.rb', line 74

def response
  @response
end

Instance Method Details

#codeObject



81
82
83
# File 'lib/ferrum.rb', line 81

def code
  response["code"]
end

#dataObject



85
86
87
# File 'lib/ferrum.rb', line 85

def data
  response["data"]
end