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.



15
16
17
18
# File 'lib/pact_broker/domain/version.rb', line 15

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

Instance Attribute Details

#latestObject (readonly)

Returns the value of attribute latest.



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

def latest
  @latest
end

Instance Method Details

#latest?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/pact_broker/domain/version.rb', line 20

def latest?
  latest
end