Method: Atatus::CentralConfig#fetch_config
- Defined in:
- lib/atatus/central_config.rb
#fetch_config ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/atatus/central_config.rb', line 76 def fetch_config resp = perform_request # rubocop:disable Lint/DuplicateBranch case resp.status when 200..299 resp when 300..399 resp when 400..499 raise ClientError, resp when 500..599 raise ServerError, resp end # rubocop:enable Lint/DuplicateBranch end |