Sha256: 2ad9b1452e4dc7860ab38e94808bf7115362ab365e1a7a0f1628d02b360211cb

Contents?: true

Size: 403 Bytes

Versions: 158

Compression:

Stored size: 403 Bytes

Contents

require_relative 'base_decorator'

module PactBroker
  module Api
    module Decorators
      class EmbeddedVersionDecorator < BaseDecorator

        property :number

        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

158 entries across 158 versions & 1 rubygems

Version Path
pact_broker-2.36.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.36.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.35.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.34.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.33.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.32.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.31.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.30.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.29.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.27.6 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.27.5 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.27.4 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.27.3 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.27.2 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.27.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.26.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.26.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.25.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.24.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.23.4 lib/pact_broker/api/decorators/embedded_version_decorator.rb