class Object
Public Instance Methods
to_param()
click to toggle source
Alias of to_s
.
# File lib/mini_apivore/to_param.rb, line 5 def to_param to_s end
to_query(key)
click to toggle source
Converts an object into a string suitable for use as a URL query string, using the given key
as the param name.
# File lib/mini_apivore/to_param.rb, line 11 def to_query(key) "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}" end