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.9.0.beta.5 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.8.0.beta.5 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.8.0.beta.4 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.7.0.beta.3 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.7.0.beta.2 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.7.0.beta.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.6.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.5.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.5.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.4.2 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.4.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.4.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.3.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.2.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.1.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.1.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.5 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.4 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.3 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.2 lib/pact_broker/api/decorators/decorator_context.rb