Class: Phenotype::ResponseHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/phenotype/response_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (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

Returns:

  • (Boolean)


11
12
13
# File 'lib/phenotype/response_handler.rb', line 11

def retry?
  valid_response? && not_found? && cascade?
end