Class: Expert::JarDependency

Inherits:
Object
  • Object
show all
Defined in:
lib/expert/jar_dependency.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_id, artifact_id, version) ⇒ JarDependency

Returns a new instance of JarDependency.



7
8
9
10
11
# File 'lib/expert/jar_dependency.rb', line 7

def initialize(group_id, artifact_id, version)
  @group_id = group_id
  @artifact_id = artifact_id
  @version = version
end

Instance Attribute Details

#artifact_idObject (readonly)

Returns the value of attribute artifact_id.



5
6
7
# File 'lib/expert/jar_dependency.rb', line 5

def artifact_id
  @artifact_id
end

#group_idObject (readonly)

Returns the value of attribute group_id.



5
6
7
# File 'lib/expert/jar_dependency.rb', line 5

def group_id
  @group_id
end

#versionObject (readonly)

Returns the value of attribute version.



5
6
7
# File 'lib/expert/jar_dependency.rb', line 5

def version
  @version
end

Instance Method Details

#classifierObject



13
14
15
# File 'lib/expert/jar_dependency.rb', line 13

def classifier
  "#{group_id}:#{artifact_id}"
end