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

Returns:

  • (Boolean)

    whether or not the response is a success



28
29
30
# File 'lib/api_client_builder/response.rb', line 28

def success?
  @failed_reason.nil? && @success_range.include?(@status_code)
end