prontolabs/pronto

View on GitHub
lib/pronto/status.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Pronto
  Status = Struct.new(:sha, :state, :context, :description) do
    def ==(other)
      sha == other.sha &&
        state == other.state &&
        context == other.context &&
        description == other.description
    end

    def to_s
      "[#{sha}] #{context} #{state} - #{description}"
    end
  end
end