Exception: HasOffersV3::UnknownError

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



50
51
52
# File 'lib/hasoffersv3/api_error.rb', line 50

def self.detect(response)
  response.error_messages.first
end