Sha256: 142a364d368f7eb45cbf765feda23868e6a7acfefdcb7fb6985f69571a0b9027

Contents?: true

Size: 469 Bytes

Versions: 26

Compression:

Stored size: 469 Bytes

Contents

require "pact_broker/api/resources/pact"
require "pact_broker/api/resources/metadata_resource_methods"

module PactBroker
  module Api
    module Resources
      class PactVersion < Pact
        include MetadataResourceMethods

        def allowed_methods
          ["GET", "OPTIONS"]
        end

        def decorator_options(options)
          super(options.merge(consumer_versions: consumer_versions_from_metadata&.reverse))
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pact_broker-2.92.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.91.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.90.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.89.1 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.89.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.88.0 lib/pact_broker/api/resources/pact_version.rb