Class: Bootprint::Advisories::Advisory
- Inherits:
-
Struct
- Object
- Struct
- Bootprint::Advisories::Advisory
- Defined in:
- lib/bootprint/advisories.rb
Instance Attribute Summary collapse
-
#affected_versions ⇒ Object
Returns the value of attribute affected_versions.
-
#cve ⇒ Object
Returns the value of attribute cve.
-
#gem ⇒ Object
Returns the value of attribute gem.
-
#id ⇒ Object
Returns the value of attribute id.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#affected_versions ⇒ Object
Returns the value of attribute affected_versions
11 12 13 |
# File 'lib/bootprint/advisories.rb', line 11 def affected_versions @affected_versions end |
#cve ⇒ Object
Returns the value of attribute cve
11 12 13 |
# File 'lib/bootprint/advisories.rb', line 11 def cve @cve end |
#gem ⇒ Object
Returns the value of attribute gem
11 12 13 |
# File 'lib/bootprint/advisories.rb', line 11 def gem @gem end |
#id ⇒ Object
Returns the value of attribute id
11 12 13 |
# File 'lib/bootprint/advisories.rb', line 11 def id @id end |
#severity ⇒ Object
Returns the value of attribute severity
11 12 13 |
# File 'lib/bootprint/advisories.rb', line 11 def severity @severity end |
#title ⇒ Object
Returns the value of attribute title
11 12 13 |
# File 'lib/bootprint/advisories.rb', line 11 def title @title end |
#url ⇒ Object
Returns the value of attribute url
11 12 13 |
# File 'lib/bootprint/advisories.rb', line 11 def url @url end |
Instance Method Details
#to_h ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/bootprint/advisories.rb', line 12 def to_h { "id" => id, "gem" => gem, "title" => title, "severity" => severity, "affected_versions" => affected_versions, "url" => url, "cve" => cve }.compact end |