Class: Depot::Inspection
- Inherits:
-
Struct
- Object
- Struct
- Depot::Inspection
- Defined in:
- lib/depot/inspection.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#executable ⇒ Object
Returns the value of attribute executable.
-
#format ⇒ Object
Returns the value of attribute format.
-
#input ⇒ Object
Returns the value of attribute input.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#risks ⇒ Object
Returns the value of attribute risks.
-
#sha256 ⇒ Object
Returns the value of attribute sha256.
-
#size ⇒ Object
Returns the value of attribute size.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
- #appimage? ⇒ Boolean
- #archive? ⇒ Boolean
- #deb? ⇒ Boolean
- #flatpakref? ⇒ Boolean
- #rpm? ⇒ Boolean
- #to_h ⇒ Object
Instance Attribute Details
#confidence ⇒ Object
Returns the value of attribute confidence
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def confidence @confidence end |
#display_name ⇒ Object
Returns the value of attribute display_name
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def display_name @display_name end |
#executable ⇒ Object
Returns the value of attribute executable
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def executable @executable end |
#format ⇒ Object
Returns the value of attribute format
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def format @format end |
#input ⇒ Object
Returns the value of attribute input
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def input @input end |
#metadata ⇒ Object
Returns the value of attribute metadata
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def @metadata end |
#risks ⇒ Object
Returns the value of attribute risks
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def risks @risks end |
#sha256 ⇒ Object
Returns the value of attribute sha256
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def sha256 @sha256 end |
#size ⇒ Object
Returns the value of attribute size
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def size @size end |
#warnings ⇒ Object
Returns the value of attribute warnings
4 5 6 |
# File 'lib/depot/inspection.rb', line 4 def warnings @warnings end |
Instance Method Details
#appimage? ⇒ Boolean
17 18 19 |
# File 'lib/depot/inspection.rb', line 17 def appimage? format == "appimage" end |
#archive? ⇒ Boolean
25 26 27 |
# File 'lib/depot/inspection.rb', line 25 def archive? %w[tar.gz tar.xz tar.zst].include?(format) end |
#deb? ⇒ Boolean
21 22 23 |
# File 'lib/depot/inspection.rb', line 21 def deb? format == "deb" end |
#flatpakref? ⇒ Boolean
33 34 35 |
# File 'lib/depot/inspection.rb', line 33 def flatpakref? format == "flatpakref" end |
#rpm? ⇒ Boolean
29 30 31 |
# File 'lib/depot/inspection.rb', line 29 def rpm? format == "rpm" end |
#to_h ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/depot/inspection.rb', line 37 def to_h { "input" => input, "format" => format, "confidence" => confidence, "display_name" => display_name, "sha256" => sha256, "size" => size, "executable" => executable, "metadata" => , "warnings" => warnings, "risks" => risks } end |