Module: Evil::Client::Formatter::Form
Overview
Utility module to format body/query as a form
Instance Method Summary collapse
-
#call(source) ⇒ String
Formats nested hash as a string.
Instance Method Details
#call(source) ⇒ String
Formats nested hash as a string
17 18 19 20 21 22 23 |
# File 'lib/evil/client/formatter/form.rb', line 17 def call(source) case source when nil then nil when Hash then normalize(source) else raise "#{source} is not a hash" end end |