Class: Pray::VerificationReport
- Inherits:
-
Struct
- Object
- Struct
- Pray::VerificationReport
- Defined in:
- lib/pray/verify.rb
Instance Attribute Summary collapse
-
#findings ⇒ Object
Returns the value of attribute findings.
Instance Method Summary collapse
- #clean? ⇒ Boolean
- #errors? ⇒ Boolean
-
#initialize(findings: []) ⇒ VerificationReport
constructor
A new instance of VerificationReport.
- #warnings? ⇒ Boolean
Constructor Details
#initialize(findings: []) ⇒ VerificationReport
Returns a new instance of VerificationReport.
10 11 12 |
# File 'lib/pray/verify.rb', line 10 def initialize(findings: []) super end |
Instance Attribute Details
#findings ⇒ Object
Returns the value of attribute findings
9 10 11 |
# File 'lib/pray/verify.rb', line 9 def findings @findings end |
Instance Method Details
#clean? ⇒ Boolean
14 |
# File 'lib/pray/verify.rb', line 14 def clean? = findings.empty? |
#errors? ⇒ Boolean
16 |
# File 'lib/pray/verify.rb', line 16 def errors? = findings.any?(&:error?) |
#warnings? ⇒ Boolean
15 |
# File 'lib/pray/verify.rb', line 15 def warnings? = findings.any?(&:warning?) |