Sha256: 13e7bdcbaeddb60f65f2ef079f81b22e291eab9ea05b178f03ad9f8da33532ad

Contents?: true

Size: 474 Bytes

Versions: 9

Compression:

Stored size: 474 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

9 entries across 9 versions & 1 rubygems

Version Path
pact_broker-2.112.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.111.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.109.1 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.109.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.108.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.107.1 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.107.0 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/api/resources/pact_version.rb
pact_broker-2.106.0 lib/pact_broker/api/resources/pact_version.rb