lib/spidr/page/status_codes.rb in spidr-0.6.1 vs lib/spidr/page/status_codes.rb in spidr-0.7.0

- old
+ new

@@ -21,20 +21,10 @@ end alias ok? is_ok? # - # Determines if the response code is `308`. - # - # @return [Boolean] - # Specifies whether the response code is `308`. - # - def timedout? - code == 308 - end - - # # Determines if the response code is `400`. # # @return [Boolean] # Specifies whether the response code is `400`. # @@ -75,9 +65,21 @@ def is_missing? code == 404 end alias missing? is_missing? + + # + # Determines if the response code is `408`. + # + # @return [Boolean] + # Specifies whether the response code is `408`. + # + def is_timedout? + code == 408 + end + + alias timedout? is_timedout? # # Determines if the response code is `500`. # # @return [Boolean]