Class: PactBroker::Domain::EagerTagWithLatestFlag

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/pact_broker/domain/version.rb

Overview

Same attributes as PactBroker::Tags::TagWithLatestFlag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, latest) ⇒ EagerTagWithLatestFlag

Returns a new instance of EagerTagWithLatestFlag.



13
14
15
16
# File 'lib/pact_broker/domain/version.rb', line 13

def initialize(tag, latest)
  super(tag)
  @latest = latest
end

Instance Attribute Details

#latestObject (readonly)

Returns the value of attribute latest.



11
12
13
# File 'lib/pact_broker/domain/version.rb', line 11

def latest
  @latest
end

Instance Method Details

#latest?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/pact_broker/domain/version.rb', line 18

def latest?
  latest
end