Class: Atatus::Config::ErrorLimitConverter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/config/error_limit_converter.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.

Instance Method Summary collapse

Instance Method Details

#call(value) ⇒ 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.



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/atatus/config/error_limit_converter.rb', line 4

def call(value)
  value = value.to_i

  if value < 20
    return 20
  elsif value > 200
    return 200
  else
    return value
  end        
end