lib/cc/analyzer/issue_validations/validation.rb in codeclimate-0.36.0 vs lib/cc/analyzer/issue_validations/validation.rb in codeclimate-0.37.0
- old
+ new
@@ -15,9 +15,21 @@
end
private
attr_reader :object
+
+ def path
+ object.fetch("location", {})["path"]
+ end
+
+ def type
+ object["type"]
+ end
+
+ def content
+ object["content"]
+ end
end
end
end
end