Class: CC::Analyzer::IssueTypeValidation

Inherits:
Validation
  • Object
show all
Defined in:
lib/cc/analyzer/issue_type_validation.rb

Instance Method Summary collapse

Methods inherited from Validation

#initialize

Constructor Details

This class inherits a constructor from CC::Analyzer::Validation

Instance Method Details

#messageObject



8
9
10
# File 'lib/cc/analyzer/issue_type_validation.rb', line 8

def message
  "Type must be 'issue' but was '#{type}'"
end

#valid?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/cc/analyzer/issue_type_validation.rb', line 4

def valid?
  type && type.casecmp("issue").zero?
end