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.23.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.22.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.21.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.20.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.19.2 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.19.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.19.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.18.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.17.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.17.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.16.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.16.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.15.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.14.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.13.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.13.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.12.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.11.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.10.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.9.0 lib/pact_broker/api/decorators/decorator_context.rb