Sha256: 76c708849d2e2e113f3a3e2c57e00f09d6c56987dcfe4adfef239b21584e8164

Contents?: true

Size: 339 Bytes

Versions: 9

Compression:

Stored size: 339 Bytes

Contents

module VersionCake
  class VersionedResponseService
    def initialize(config)
      @strategies = config.response_strategies
    end

    def inject_version(versioned_context, status, headers, response)
      @strategies.each do |strategy|
        strategy.execute(versioned_context, status, headers, response)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
versioncake-4.1.1 lib/versioncake/versioned_response_service.rb
versioncake-4.1.0 lib/versioncake/versioned_response_service.rb
versioncake-4.0.2 lib/versioncake/versioned_response_service.rb
versioncake-4.0.1 lib/versioncake/versioned_response_service.rb
versioncake-4.0.0 lib/versioncake/versioned_response_service.rb
versioncake-3.4.0 lib/versioncake/versioned_response_service.rb
versioncake-3.3.0 lib/versioncake/versioned_response_service.rb
versioncake-3.2.0 lib/versioncake/versioned_response_service.rb
versioncake-3.1.0 lib/versioncake/versioned_response_service.rb