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
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def bytes @bytes end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def diagnostics @diagnostics end |
#ok ⇒ Object
Returns the value of attribute ok
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def ok @ok end |
#path ⇒ Object
Returns the value of attribute path
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def path @path end |
#report ⇒ Object
Returns the value of attribute report
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def report @report end |
#schema ⇒ Object
Returns the value of attribute schema
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def schema @schema end |
#sha256 ⇒ Object
Returns the value of attribute sha256
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def sha256 @sha256 end |
#status ⇒ Object
Returns the value of attribute status
28 29 30 |
# File 'lib/harnex/artifact_report.rb', line 28 def status @status end |
Instance Method Details
#public_payload(final: false) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/harnex/artifact_report.rb', line 32 def public_payload(final: false) { "ok" => !!ok, "status" => status, "path" => path, "bytes" => bytes, "sha256" => sha256, "schema" => schema, "final" => !!final, "diagnostics" => diagnostics || [] } end |