Class: LockJar::Domain::Artifact

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/lock_jar/domain/artifact.rb

Direct Known Subclasses

Jar, Local, Pom

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



26
27
28
# File 'lib/lock_jar/domain/artifact.rb', line 26

def type
  @type
end

Instance Method Details

#<=>(another_artifact) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/lock_jar/domain/artifact.rb', line 28

def <=>(another_artifact)
  if another_artifact.is_a? Artifact
    to_urn <=> another_artifact.to_urn
  else
    to_urn <=> another_artifact.to_s
  end
end

#resolvable?Boolean



36
37
38
# File 'lib/lock_jar/domain/artifact.rb', line 36

def resolvable?
  true
end