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