Exception: HasOffersV3::IPNotWhitelistedError
- Inherits:
-
APIError
- Object
- StandardError
- Error
- ResponseError
- APIError
- HasOffersV3::IPNotWhitelistedError
- Defined in:
- lib/hasoffersv3/api_error.rb
Instance Attribute Summary
Attributes inherited from ResponseError
Class Method Summary collapse
Methods inherited from APIError
Methods inherited from ResponseError
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..grep(/IP \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} is not white-listed/).first end |