Class: Harnex::ArtifactReport::ValidationResult
- Inherits:
-
Struct
- Object
- Struct
- Harnex::ArtifactReport::ValidationResult
- Defined in:
- lib/harnex/artifact_report.rb
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Returns the value of attribute bytes.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#path ⇒ Object
Returns the value of attribute path.
-
#report ⇒ Object
Returns the value of attribute report.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#sha256 ⇒ Object
Returns the value of attribute sha256.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#bytes ⇒ Object
Returns the value of attribute bytes
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def bytes @bytes end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def diagnostics @diagnostics end |
#ok ⇒ Object
Returns the value of attribute ok
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def ok @ok end |
#path ⇒ Object
Returns the value of attribute path
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def path @path end |
#report ⇒ Object
Returns the value of attribute report
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def report @report end |
#schema ⇒ Object
Returns the value of attribute schema
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def schema @schema end |
#sha256 ⇒ Object
Returns the value of attribute sha256
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def sha256 @sha256 end |
#status ⇒ Object
Returns the value of attribute status
21 22 23 |
# File 'lib/harnex/artifact_report.rb', line 21 def status @status end |
Instance Method Details
#public_payload(final: false) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/harnex/artifact_report.rb', line 25 def public_payload(final: false) { "ok" => !!ok, "status" => status, "path" => path, "bytes" => bytes, "sha256" => sha256, "schema" => schema, "final" => !!final, "diagnostics" => diagnostics || [] } end |