Class: Faraday::ProxyOptions
- Extended by:
- Forwardable
- Defined in:
- lib/faraday/options.rb
Class Method Summary collapse
Class Method Details
.from(value) ⇒ Object
220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/faraday/options.rb', line 220 def self.from(value) case value when String value = {:uri => Utils.URI(value)} when URI value = {:uri => value} when Hash, Options if uri = value.delete(:uri) value[:uri] = Utils.URI(uri) end end super(value) end |