Class: Hash

Inherits:
Object show all
Defined in:
lib/commercebank/monkey.rb

Instance Method Summary collapse

Instance Method Details



56
57
58
# File 'lib/commercebank/monkey.rb', line 56

def to_cookie
  map {|key, value| "#{key}=#{value}"}.join('; ')
end

#to_urlObject



52
53
54
# File 'lib/commercebank/monkey.rb', line 52

def to_url
  map {|key, value| "#{CGI.escape key.to_s}=#{CGI.escape value.to_s}"}.join "&"
end