class Pricefinder::Error::ResponseValidator
Public Instance Methods
validate(response)
click to toggle source
# File lib/pricefinder/error.rb, line 5 def validate(response) return if successful_response?(response) end
Private Instance Methods
successful_response?(response)
click to toggle source
# File lib/pricefinder/error.rb, line 11 def successful_response?(response) (200..399).include?(response.status) end