Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/http_requestor.rb
Instance Method Summary collapse
Instance Method Details
#to_param ⇒ Object
124 125 126 |
# File 'lib/http_requestor.rb', line 124 def to_param to_s end |
#to_query(key) ⇒ Object
119 120 121 122 |
# File 'lib/http_requestor.rb', line 119 def to_query(key) require 'cgi' unless defined?(CGI) && defined?(CGI::escape) "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}" end |