Sha256: 79845c920110e7c71ef02235e286dd862da62e1bfe38c398879d75a204e03de8

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 Bytes

Contents

require_relative "base_decorator"

module PactBroker
  module Api
    module Decorators
      class EmbeddedVersionDecorator < BaseDecorator
        camelize_property_names

        property :number
        if PactBroker.feature_enabled?(:branches)
          property :build_url
        end

        link :self do | options |
          {
            title: "Version",
            name: represented.number,
            href: version_url(options.fetch(:base_url), represented)
          }
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pact_broker-2.107.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.107.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.106.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.105.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.104.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.103.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.102.2 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.102.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.102.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb