Sha256: d488f5a42eba404bd4bac52c093b7de8c3e5c7cebb166a678e6818f99af812b5

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

require 'extra/enum'

module INat::App::Config; end

class INat::App::Config::MessageLevel < Enum

  item :TRACE, -1
  item :DEBUG,   data: 0
  item :INFO,    data: 1
  item :WARNING, data: 2
  item :ERROR,   data: 3
  item :FATAL,   data: 4
  item :UNKNOWN, data: 5

  item_alias :WARN => :WARNING

  def severity
    self.data
  end

  freeze
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inat-get-0.8.0.15 lib/inat/app/config/messagelevel.rb
inat-get-0.8.0.14 lib/inat/app/config/messagelevel.rb
inat-get-0.8.0.13 lib/inat/app/config/messagelevel.rb