Sha256: 7dffceab2547ac47331b96f3645ea29e504fe9bd278d5296d5b6e237594512ac

Contents?: true

Size: 603 Bytes

Versions: 99

Compression:

Stored size: 603 Bytes

Contents

module PactBroker
  module Api
    module Decorators

      class DecoratorContext < Hash

        attr_reader :base_url, :resource_url, :resource_title

        def initialize base_url, resource_url, options = {}
          @base_url = base_url
          self[:base_url] = base_url
          @resource_url = resource_url
          self[:resource_url] = resource_url
          @resource_title = options[:resource_title]
          self[:resource_title] = resource_title
          merge!(options)
        end

        def to_s
          "DecoratorContext #{super}"
        end

      end

    end
  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
pact_broker-2.34.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.33.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.32.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.31.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.30.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.29.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.27.6 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.27.5 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.27.4 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.27.3 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.27.2 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.27.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.26.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.26.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.25.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.24.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.23.4 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.23.3 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.23.2 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.23.1 lib/pact_broker/api/decorators/decorator_context.rb