Method: APIClientBuilder::Response#success?
- Defined in:
- lib/api_client_builder/response.rb
#success? ⇒ Boolean
Defines the success conditional for a response by determining whether or not the status code of the response is within the defined success range
28 29 30 |
# File 'lib/api_client_builder/response.rb', line 28 def success? @failed_reason.nil? && @success_range.include?(@status_code) end |