class HasOffersV3::IPNotWhitelistedError

Public Class Methods

detect(response) click to toggle source
# 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