Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/http_requestor.rb
Instance Method Summary collapse
Instance Method Details
#to_param ⇒ Object
185 186 187 |
# File 'lib/http_requestor.rb', line 185 def to_param to_s end |
#to_query(key) ⇒ Object
180 181 182 183 |
# File 'lib/http_requestor.rb', line 180 def to_query(key) require 'cgi' unless defined?(CGI) && defined?(CGI::escape) "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}" end |