Class: Bootprint::Advisories::Match
- Inherits:
-
Struct
- Object
- Struct
- Bootprint::Advisories::Match
- Defined in:
- lib/bootprint/advisories.rb
Instance Attribute Summary collapse
-
#advisory ⇒ Object
Returns the value of attribute advisory.
-
#gem ⇒ Object
Returns the value of attribute gem.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#advisory ⇒ Object
Returns the value of attribute advisory
25 26 27 |
# File 'lib/bootprint/advisories.rb', line 25 def advisory @advisory end |
#gem ⇒ Object
Returns the value of attribute gem
25 26 27 |
# File 'lib/bootprint/advisories.rb', line 25 def gem @gem end |
#version ⇒ Object
Returns the value of attribute version
25 26 27 |
# File 'lib/bootprint/advisories.rb', line 25 def version @version end |
Instance Method Details
#to_h ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/bootprint/advisories.rb', line 26 def to_h { "gem" => gem, "version" => version, "advisory" => advisory.to_h } end |