module VersionCake class QueryParameterStrategy < ExtractionStrategy def execute(request) if request.query_parameters.has_key? @@version_string.to_sym request.query_parameters[@@version_string.to_sym] end end end end