Class: Atatus::Span::Outcome Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/span.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

FAILURE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

"failure"
SUCCESS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

"success"
UNKNOWN =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

"unknown"

Class Method Summary collapse

Class Method Details

.from_http_status(code) ⇒ 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.



34
35
36
# File 'lib/atatus/span.rb', line 34

def self.from_http_status(code)
  code.to_i >= 400 ? FAILURE : SUCCESS
end