Class: Paperclip::HttpUrlProxyAdapter
- Inherits:
-
UriAdapter
- Object
- AbstractAdapter
- UriAdapter
- Paperclip::HttpUrlProxyAdapter
- Defined in:
- lib/paperclip/io_adapters/http_url_proxy_adapter.rb
Constant Summary collapse
- REGEXP =
/\Ahttps?:\/\//
Constants inherited from AbstractAdapter
AbstractAdapter::OS_RESTRICTED_CHARACTERS
Instance Attribute Summary
Attributes inherited from UriAdapter
Attributes inherited from AbstractAdapter
#content_type, #original_filename, #size
Instance Method Summary collapse
-
#initialize(target) ⇒ HttpUrlProxyAdapter
constructor
A new instance of HttpUrlProxyAdapter.
Methods inherited from AbstractAdapter
#assignment?, #fingerprint, #inspect, #nil?, #read
Constructor Details
#initialize(target) ⇒ HttpUrlProxyAdapter
Returns a new instance of HttpUrlProxyAdapter.
6 7 8 |
# File 'lib/paperclip/io_adapters/http_url_proxy_adapter.rb', line 6 def initialize(target) super(URI(URI.escape(target))) end |