Sha256: 2b9a7d80801eb23192e7f04c9a851d89ac7d720137158d4c6425201b801c451f

Contents?: true

Size: 764 Bytes

Versions: 1

Compression:

Stored size: 764 Bytes

Contents

=begin
#Moonlogs

#Moonlogs API

OpenAPI spec version: 1.5.8
Contact: shalpack@gmail.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.52
=end

require 'date'

module MoonlogsRuby
  class Level
    TRACE = 'Trace'.freeze
    DEBUG = 'Debug'.freeze
    INFO = 'Info'.freeze
    WARN = 'Warn'.freeze
    ERROR = 'Error'.freeze
    FATAL = 'Fatal'.freeze

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      constantValues = Level.constants.select { |c| Level::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Level" if constantValues.empty?
      value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moonlogs-ruby-1.5.8 lib/moonlogs-ruby/models/level.rb