Class: Hash

Inherits:
Object show all
Defined in:
lib/hash_digest.rb

Instance Method Summary collapse

Instance Method Details

#to_hash_digest_param(namespace = nil) ⇒ Object Also known as: to_hash_digest_query


63
64
65
66
67
# File 'lib/hash_digest.rb', line 63

def to_hash_digest_param(namespace = nil)
  map do |key, value|
    value.to_hash_digest_query(namespace ? "#{namespace}[#{key}]" : key)
  end.sort.join '&'
end