Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/office365/utils/hash.rb
Instance Method Summary collapse
Instance Method Details
#ms_hash_to_query ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/office365/utils/hash.rb', line 6 def ms_hash_to_query query_str = [] each_pair do |key, value| query_str << "#{CGI.escape(key.to_s)}=#{CGI.escape(value.to_s)}" end query_str.join("&") end |