Class: Mxrb::Compiler::CompatibilityReport
- Inherits:
-
Data
- Object
- Data
- Mxrb::Compiler::CompatibilityReport
- Defined in:
- lib/mxrb/compiler/compatibility_analyzer.rb
Instance Attribute Summary collapse
-
#findings ⇒ Object
readonly
Returns the value of attribute findings.
-
#mendix_version ⇒ Object
readonly
Returns the value of attribute mendix_version.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Instance Method Summary collapse
Instance Attribute Details
#findings ⇒ Object (readonly)
Returns the value of attribute findings
9 10 11 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 9 def findings @findings end |
#mendix_version ⇒ Object (readonly)
Returns the value of attribute mendix_version
9 10 11 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 9 def mendix_version @mendix_version end |
#path ⇒ Object (readonly)
Returns the value of attribute path
9 10 11 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 9 def path @path end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats
9 10 11 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 9 def stats @stats end |
Instance Method Details
#compatible? ⇒ Boolean
10 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 10 def compatible? = findings.none? { _1.severity == :error } |
#errors ⇒ Object
11 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 11 def errors = findings.select { _1.severity == :error } |
#to_h ⇒ Object
14 15 16 17 18 19 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 14 def to_h { path:, mendix_version:, compatible: compatible?, stats:, findings: findings.map(&:to_h) } end |
#warnings ⇒ Object
12 |
# File 'lib/mxrb/compiler/compatibility_analyzer.rb', line 12 def warnings = findings.select { _1.severity == :warning } |