Class: RestMan::Request::ProxyURI
- Inherits:
-
ActiveMethod::Base
- Object
- ActiveMethod::Base
- RestMan::Request::ProxyURI
- Defined in:
- lib/restman/request/proxy_uri.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/restman/request/proxy_uri.rb', line 5 def call if request.instance_variable_defined?(:@proxy) if request.proxy URI.parse(request.proxy) else false end elsif RestMan.proxy_set? if RestMan.proxy URI.parse(RestMan.proxy) else false end else nil end end |