Class: Buildpack::ManifestDependency

Inherits:
Object
  • Object
show all
Defined in:
lib/buildpack/manifest_dependency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, version) ⇒ ManifestDependency

Returns a new instance of ManifestDependency.



5
6
7
8
# File 'lib/buildpack/manifest_dependency.rb', line 5

def initialize(name, version)
  @name = name
  @version = version
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/buildpack/manifest_dependency.rb', line 3

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/buildpack/manifest_dependency.rb', line 3

def version
  @version
end

Instance Method Details

#==(other_object) ⇒ Object



10
11
12
# File 'lib/buildpack/manifest_dependency.rb', line 10

def ==(other_object)
  name == other_object.name && version == other_object.version
end