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.0.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.8 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.7 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.6 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.18.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.5 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.18.0.beta.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.17.2 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.17.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.4 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.3 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.2 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-2.0.0.beta.1 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.17.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.16.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.15.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.14.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.13.0 lib/pact_broker/api/decorators/decorator_context.rb
pact_broker-1.12.0 lib/pact_broker/api/decorators/decorator_context.rb