Sha256: ad5206cb3ba60d9c791e44126f603e09b9338dce99ceae33b26a86c441c98504
Contents?: true
Size: 765 Bytes
Versions: 2
Compression:
Stored size: 765 Bytes
Contents
=begin #Moonlogs #Moonlogs API OpenAPI spec version: 1.15.1 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moonlogs-ruby-1.15.1 | lib/moonlogs-ruby/models/level.rb |
moonlogs-ruby-1.15.0 | lib/moonlogs-ruby/models/level.rb |