Exception: HasOffersV3::IPNotWhitelistedError

Inherits:
APIError show all
Defined in:
lib/hasoffersv3/api_error.rb

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Class Method Summary collapse

Methods inherited from APIError

from_response

Methods inherited from ResponseError

#initialize

Constructor Details

This class inherits a constructor from HasOffersV3::ResponseError

Class Method Details

.detect(response) ⇒ Object



25
26
27
# File 'lib/hasoffersv3/api_error.rb', line 25

def self.detect(response)
  response.error_messages.grep(/IP \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} is not white-listed/).first
end