Class: Bootprint::Advisories::Match

Inherits:
Struct
  • Object
show all
Defined in:
lib/bootprint/advisories.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#advisoryObject

Returns the value of attribute advisory

Returns:

  • (Object)

    the current value of advisory



25
26
27
# File 'lib/bootprint/advisories.rb', line 25

def advisory
  @advisory
end

#gemObject

Returns the value of attribute gem

Returns:

  • (Object)

    the current value of gem



25
26
27
# File 'lib/bootprint/advisories.rb', line 25

def gem
  @gem
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



25
26
27
# File 'lib/bootprint/advisories.rb', line 25

def version
  @version
end

Instance Method Details

#to_hObject



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