class Omnibus::ManifestEntry

Attributes

described_version[R]
license[R]
locked_source[R]
locked_version[R]
name[R]
source_type[R]

Public Class Methods

new(name, manifest_data) click to toggle source
# File lib/omnibus/manifest_entry.rb, line 20
def initialize(name, manifest_data)
  @name = name
  @locked_version = manifest_data[:locked_version]
  @locked_source = manifest_data[:locked_source]
  @source_type = manifest_data[:source_type]
  @described_version = manifest_data[:described_version]
  @license = manifest_data[:license]
end

Public Instance Methods

==(other) click to toggle source
# File lib/omnibus/manifest_entry.rb, line 39
def ==(other)
  if other.is_a?(ManifestEntry)
    (to_hash == other.to_hash) && (name == other.name)
  end
end
to_hash() click to toggle source
# File lib/omnibus/manifest_entry.rb, line 29
def to_hash
  {
    locked_version: @locked_version,
    locked_source: @locked_source,
    source_type: @source_type,
    described_version: @described_version,
    license: @license,
  }
end