Class: KynetxAmApi::QueryParams
- Inherits:
-
Hash
- Object
- Hash
- KynetxAmApi::QueryParams
- Defined in:
- lib/kynetx_am_api/direct_api.rb
Instance Method Summary collapse
Instance Method Details
#to_params ⇒ Object
237 238 239 240 241 242 |
# File 'lib/kynetx_am_api/direct_api.rb', line 237 def to_params return "" if self.empty? p = "?" self.each {|k,v| p += "#{CGI::escape k.to_s}=#{CGI::escape v.to_s}&"} return p.chop end |