Sha256: 53548fe3efe0e4a911c949be44de7c962b64a7acc9d893a62301f591b4e83eaf
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
module Pione module System class Status class << self def success new(:success) end def error(message) new(:error, message) end end attr_reader :message def initialize(status, message=nil) @status = status @message = message end def success? @status == :success end def error? @status == :error end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pione-0.4.2 | lib/pione/system/status.rb |
pione-0.4.1 | lib/pione/system/status.rb |
pione-0.4.0 | lib/pione/system/status.rb |