Module: Hanami::Utils::QueryString
- Defined in:
- gems/gems/hanami-utils-1.3.3/lib/hanami/utils/query_string.rb,
gems/gems/hanami-utils-1.3.8/lib/hanami/utils/query_string.rb
Overview
URI query string transformations
Class Method Summary collapse
-
.call(input) ⇒ ::String
Serializes input into a query string.
Class Method Details
.call(input) ⇒ ::String
Serializes input into a query string
TODO: this is a very basic implementation that needs to be expanded
Source: | on GitHub
def self.call(input) case input when ::Hash input.map { |key, value| "#{key}=#{value.inspect}" }.join(HASH_SEPARATOR) else input.to_s end end |