Method: Ayadn::CheckBase#check_response_code

Defined in:
lib/ayadn/diagnostics.rb

#check_response_codeObject



60
61
62
63
64
65
66
67
# File 'lib/ayadn/diagnostics.rb', line 60

def check_response_code
  code = @response.code
  if code == 200
    @status.say_green :status, "OK"
  else
    @status.say_red :status, "#{code}"
  end
end