Module: SentryTopErrors::ApiResponse::ExtMethods

Included in:
FromArray, FromHash
Defined in:
lib/sentry_top_errors/api_response.rb

Instance Method Summary collapse

Instance Method Details

#headersObject



30
31
32
# File 'lib/sentry_top_errors/api_response.rb', line 30

def headers
  @response.headers
end

#http_success?Boolean

Returns:



22
23
24
# File 'lib/sentry_top_errors/api_response.rb', line 22

def http_success?
  @response.status < 400
end

#statusObject



26
27
28
# File 'lib/sentry_top_errors/api_response.rb', line 26

def status
  @response.status
end