Sha256: c86b06a2b1c420f590ee33b761fbc6b76b77c5c7c75752b6fd283b108ad1bff0

Contents?: true

Size: 260 Bytes

Versions: 1

Compression:

Stored size: 260 Bytes

Contents

module SnowmanIO
  class CheckResult < Struct.new(:check, :status, :message)
    def check_name
      check.name
    end

    def fail?
      status == "failed"
    end

    def serialize
      JSON.dump({ status: status, message: message })
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snowman-io-0.0.4 lib/snowman-io/check_result.rb