Sha256: 6fe88233f20d49fd6011671847563ef9426635efa72147c56b17e47f4ef206fd

Contents?: true

Size: 293 Bytes

Versions: 11

Compression:

Stored size: 293 Bytes

Contents

module Auger

  class Status
    VALUES = [:ok, :warn, :error, :exception]
    attr_accessor :value
    
    def initialize(value)
      raise ArgumentError, "illegal status value" unless VALUES.include? value
      @value = value
    end

    def to_s
      @value.to_s
    end

  end
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
auger-1.4.6 lib/auger/status.rb
auger-1.4.5 lib/auger/status.rb
auger-1.4.4 lib/auger/status.rb
auger-1.4.3 lib/auger/status.rb
auger-1.4.2 lib/auger/status.rb
auger-1.4.1 lib/auger/status.rb
auger-1.4.0 lib/auger/status.rb
auger-1.3.8 lib/auger/status.rb
auger-1.3.7 lib/auger/status.rb
auger-1.3.6 lib/auger/status.rb
auger-1.3.5 lib/auger/status.rb