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.



48
49
50
51
# File 'lib/ferrum.rb', line 48

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



46
47
48
# File 'lib/ferrum.rb', line 46

def response
  @response
end

Instance Method Details

#codeObject



53
54
55
# File 'lib/ferrum.rb', line 53

def code
  response["code"]
end

#dataObject



57
58
59
# File 'lib/ferrum.rb', line 57

def data
  response["data"]
end