Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/cleverbot-api.rb

Instance Method Summary collapse

Instance Method Details

#to_querystringObject


88
89
90
91
# File 'lib/cleverbot-api.rb', line 88

def to_querystring
  self.map { |pair| "#{URI::encode pair.first.to_s}=#{URI::encode pair.last.to_s}" }
      .join '&'
end