Module: RemoteResource::Connection::ClassMethods
- Defined in:
- lib/remote_resource/connection.rb
Instance Method Summary collapse
- #connection ⇒ Object
- #content_type ⇒ Object
- #content_type=(content_type) ⇒ Object
- #extra_headers ⇒ Object
- #extra_headers=(_) ⇒ Object
- #headers ⇒ Object
- #headers=(_) ⇒ Object
Instance Method Details
#connection ⇒ Object
13 14 15 |
# File 'lib/remote_resource/connection.rb', line 13 def connection Typhoeus::Request end |
#content_type ⇒ Object
22 23 24 25 |
# File 'lib/remote_resource/connection.rb', line 22 def content_type warn '[DEPRECATION] `.content_type` is deprecated. Please use `.extension` instead.' self.extension end |
#content_type=(content_type) ⇒ Object
17 18 19 20 |
# File 'lib/remote_resource/connection.rb', line 17 def content_type=(content_type) warn '[DEPRECATION] `.content_type=` is deprecated. Please use `.extension=` instead.' self.extension = content_type end |
#extra_headers ⇒ Object
31 32 33 |
# File 'lib/remote_resource/connection.rb', line 31 def extra_headers warn '[DEPRECATION] `.extra_headers` is deprecated. Please overwrite the .headers method to set custom headers.' end |
#extra_headers=(_) ⇒ Object
27 28 29 |
# File 'lib/remote_resource/connection.rb', line 27 def extra_headers=(_) warn '[DEPRECATION] `.extra_headers=` is deprecated. Please overwrite the .headers method to set custom headers.' end |
#headers ⇒ Object
39 40 41 |
# File 'lib/remote_resource/connection.rb', line 39 def headers {} end |
#headers=(_) ⇒ Object
35 36 37 |
# File 'lib/remote_resource/connection.rb', line 35 def headers=(_) warn '[WARNING] `.headers=` can not be used to set custom headers. Please overwrite the .headers method to set custom headers.' end |