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.79.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.79.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.78.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.78.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.77.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.76.2 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.76.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.76.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.75.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.74.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.74.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.73.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.72.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.71.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.70.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.69.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.68.1 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.68.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.67.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb
pact_broker-2.66.0 lib/pact_broker/api/decorators/embedded_version_decorator.rb