Sha256: 0d164fa9c7a4922c9ef952d1f2aecb1d183adf9c5477c07a0cf4d150515fda5e

Contents?: true

Size: 506 Bytes

Versions: 161

Compression:

Stored size: 506 Bytes

Contents

require_relative 'pact_details_decorator'
require 'pact_broker/api/decorators/timestamps'

module PactBroker

  module Api

    module Decorators

      class LatestPactDecorator < PactDetailsDecorator

        include Timestamps

        links :self do | options |
          [
            {
              href: latest_pact_url(options[:base_url], represented)
            },{
              href: pact_url(options[:base_url], represented)
            }
          ]
        end

      end
    end
  end
end

Version data entries

161 entries across 161 versions & 1 rubygems

Version Path
pact_broker-2.79.1 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.79.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.78.1 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.78.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.77.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.76.2 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.76.1 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.76.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.75.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.74.1 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.74.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.73.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.72.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.71.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.70.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.69.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.68.1 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.68.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.67.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb
pact_broker-2.66.0 lib/pact_broker/api/decorators/latest_pact_decorator.rb