Class: DNSApp::AuthCheckParser

Inherits:
HTTParty::Parser
  • Object
show all
Defined in:
lib/dnsapp/auth_check_parser.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#parseObject



9
10
11
12
# File 'lib/dnsapp/auth_check_parser.rb', line 9

def parse
  raise DNSApp::Unauthorized, "Access Denied. Maybe you supplied wrong credentials?" if body =~ /HTTP Basic: Access denied./i
  super
end