Sha256: 2dd1b8796dc2ee4af34cdf949fd2d0c49179f6e8b73765dc20086bf4052fd16f
Contents?: true
Size: 591 Bytes
Versions: 33
Compression:
Stored size: 591 Bytes
Contents
module CC module Analyzer class EngineOutput delegate :blank?, to: :raw_output delegate :to_json, to: :as_issue def initialize(raw_output) @raw_output = raw_output end def issue? parsed_output && parsed_output["type"].present? && parsed_output["type"].downcase == "issue" end def as_issue Issue.new(raw_output) end private attr_accessor :raw_output def parsed_output JSON.parse(raw_output) rescue JSON::ParserError nil end end end end
Version data entries
33 entries across 33 versions & 1 rubygems