Exception: Spidy::Connector::Retry
- Inherits:
-
StandardError
- Object
- StandardError
- Spidy::Connector::Retry
- Defined in:
- lib/spidy/connector.rb
Overview
retry class
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(object: nil, error: nil, response_code: nil) ⇒ Retry
constructor
A new instance of Retry.
Constructor Details
#initialize(object: nil, error: nil, response_code: nil) ⇒ Retry
Returns a new instance of Retry.
51 52 53 54 55 56 |
# File 'lib/spidy/connector.rb', line 51 def initialize(object: nil, error: nil, response_code: nil) @object = object @response_code = response_code @error = error super(error) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
49 50 51 |
# File 'lib/spidy/connector.rb', line 49 def error @error end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
49 50 51 |
# File 'lib/spidy/connector.rb', line 49 def object @object end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
49 50 51 |
# File 'lib/spidy/connector.rb', line 49 def response_code @response_code end |