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


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

def type
  @type
end

Instance Method Details

#<=>(other) ⇒ Object


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

def <=>(other)
  return to_urn <=> other.to_urn if other.is_a? Artifact

  to_urn <=> other.to_s
end

#resolvable?Boolean

Returns:

  • (Boolean)

33
34
35
# File 'lib/lock_jar/domain/artifact.rb', line 33

def resolvable?
  true
end