Sha256: ab25ce173b601f5c3a447d7f7fda9160d9f4b664ecb5fa32d545bace660aed00

Contents?: true

Size: 202 Bytes

Versions: 10

Compression:

Stored size: 202 Bytes

Contents

module VersionCake
  class QueryParameterStrategy < ExtractionStrategy

    def execute(request)
      if request.GET.key? version_key
        request.GET[version_key].to_s
      end
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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