Class: Phenotype::ResponseHandler
- Inherits:
-
Object
- Object
- Phenotype::ResponseHandler
- Defined in:
- lib/phenotype/response_handler.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseHandler
constructor
A new instance of ResponseHandler.
- #retry? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ ResponseHandler
Returns a new instance of ResponseHandler.
7 8 9 |
# File 'lib/phenotype/response_handler.rb', line 7 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/phenotype/response_handler.rb', line 5 def response @response end |
Instance Method Details
#retry? ⇒ Boolean
11 12 13 |
# File 'lib/phenotype/response_handler.rb', line 11 def retry? valid_response? && not_found? && cascade? end |