Sha256: 73d68cef2c3c1c9aad5f6f8f6faeda9ee6979b210a1cf8168dad97bcc7113a36

Contents?: true

Size: 242 Bytes

Versions: 10

Compression:

Stored size: 242 Bytes

Contents

module VersionCake
  class QueryParameterStrategy < ExtractionStrategy

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

  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/versioncake-2.3.1/lib/versioncake/strategies/query_parameter_strategy.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/versioncake-2.3.1/lib/versioncake/strategies/query_parameter_strategy.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/versioncake-2.3.1/lib/versioncake/strategies/query_parameter_strategy.rb
versioncake-2.5.0 lib/versioncake/strategies/query_parameter_strategy.rb
versioncake-2.4.0 lib/versioncake/strategies/query_parameter_strategy.rb
versioncake-2.3.1 lib/versioncake/strategies/query_parameter_strategy.rb
versioncake-2.3.0 lib/versioncake/strategies/query_parameter_strategy.rb
versioncake-2.2.0 lib/versioncake/strategies/query_parameter_strategy.rb
versioncake-2.1.0 lib/versioncake/strategies/query_parameter_strategy.rb
versioncake-2.0.0 lib/versioncake/strategies/query_parameter_strategy.rb