Class: LockJar::Domain::Jar
- Defined in:
- lib/lock_jar/domain/artifact.rb
Instance Attribute Summary collapse
-
#notation ⇒ Object
readonly
Returns the value of attribute notation.
Attributes inherited from Artifact
Instance Method Summary collapse
-
#initialize(notation) ⇒ Jar
constructor
A new instance of Jar.
- #to_dep ⇒ Object
- #to_urn ⇒ Object
Methods inherited from Artifact
Constructor Details
#initialize(notation) ⇒ Jar
Returns a new instance of Jar.
44 45 46 47 |
# File 'lib/lock_jar/domain/artifact.rb', line 44 def initialize( notation ) @type = 'jar' @notation = Naether::Notation.new( notation ).to_notation end |
Instance Attribute Details
#notation ⇒ Object (readonly)
Returns the value of attribute notation.
42 43 44 |
# File 'lib/lock_jar/domain/artifact.rb', line 42 def notation @notation end |
Instance Method Details
#to_dep ⇒ Object
53 54 55 |
# File 'lib/lock_jar/domain/artifact.rb', line 53 def to_dep notation end |
#to_urn ⇒ Object
49 50 51 |
# File 'lib/lock_jar/domain/artifact.rb', line 49 def to_urn "jar:#{notation}" end |