Class: MiniAether::LoggerConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLoggerConfig

Returns a new instance of LoggerConfig.



13
14
15
# File 'lib/mini_aether.rb', line 13

def initialize
  @level = 'INFO'
end

Instance Attribute Details

#levelObject

Returns the value of attribute level.



11
12
13
# File 'lib/mini_aether.rb', line 11

def level
  @level
end

Instance Method Details

#info?Boolean

Returns:

  • (Boolean)


34
35
36
37
38
39
40
41
# File 'lib/mini_aether.rb', line 34

def info?
  case @level
  when 'INFO', 'DEBUG'
    true
  else
    false
  end
end