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.



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

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end

Instance Method Details

#codeObject



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

def code
  response["code"]
end

#dataObject



60
61
62
# File 'lib/ferrum.rb', line 60

def data
  response["data"]
end