Class: Hash
Instance Method Summary collapse
Instance Method Details
#to_url_params ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/extensions/hash.rb', line 14 def to_url_params elements = {} self.each_pair do |key, value| url_node(key, value, elements) end elements end |
#to_url_params_str ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/extensions/hash.rb', line 22 def to_url_params_str elements = [] self.each_pair do |key, value| url_node_str(key, value, elements) end elements end |