class AdpClient::ResourceNotFoundHandler

Public Instance Methods

error() click to toggle source
# File lib/adp_client.rb, line 275
def error
  ResourceNotFound.new(
    @httparty
      .parsed_response
      .fetch('confirmMessage', {})
      .fetch('processMessages', [{}])
      .first
      .fetch('userMessage', {})
      .fetch('messageTxt', 'No userMessage messageTxt found')
  )
end
fail?() click to toggle source
# File lib/adp_client.rb, line 287
def fail?
  @httparty.code == 404
end