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.



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

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

Instance Attribute Details

#latestObject (readonly)

Returns the value of attribute latest.



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

def latest
  @latest
end

Instance Method Details

#latest?Boolean

Returns:

  • (Boolean)


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

def latest?
  latest
end