Sha256: a5eb61c1db2f70f3606dbad26bdcbfbcc7acb5ed3b3fce3794b5d684059ad075
Contents?: true
Size: 495 Bytes
Versions: 254
Compression:
Stored size: 495 Bytes
Contents
module Travis module Client class LintResult Warning = Struct.new(:key, :message) attr_accessor :warnings def initialize(payload) @warnings = [] payload = payload['lint'] if payload['lint'] Array(payload['warnings']).each do |warning| @warnings << Warning.new(warning['key'], warning['message']) end end def warnings? warnings.any? end def ok? !warnings? end end end end
Version data entries
254 entries across 254 versions & 3 rubygems