Class: Expert::JarDependency
- Inherits:
-
Object
- Object
- Expert::JarDependency
- Defined in:
- lib/expert/jar_dependency.rb
Instance Attribute Summary collapse
-
#artifact_id ⇒ Object
readonly
Returns the value of attribute artifact_id.
-
#group_id ⇒ Object
readonly
Returns the value of attribute group_id.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #classifier ⇒ Object
-
#initialize(group_id, artifact_id, version) ⇒ JarDependency
constructor
A new instance of JarDependency.
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_id ⇒ Object (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_id ⇒ Object (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 |
#version ⇒ Object (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
#classifier ⇒ Object
13 14 15 |
# File 'lib/expert/jar_dependency.rb', line 13 def classifier "#{group_id}:#{artifact_id}" end |