Module: RemoteResource::Base::ClassMethods
- Defined in:
- lib/remote_resource/base.rb
Instance Method Summary collapse
- #connection_options ⇒ Object
- #threaded_connection_options ⇒ Object
- #with_connection_options(connection_options = {}) ⇒ Object
Instance Method Details
#connection_options ⇒ Object
40 41 42 |
# File 'lib/remote_resource/base.rb', line 40 def RemoteResource::ConnectionOptions.new(self) end |
#threaded_connection_options ⇒ Object
44 45 46 |
# File 'lib/remote_resource/base.rb', line 44 def Thread.current[] ||= {} end |
#with_connection_options(connection_options = {}) ⇒ Object
48 49 50 51 52 53 54 55 |
# File 'lib/remote_resource/base.rb', line 48 def ( = {}) begin Thread.current[] = .merge() yield ensure Thread.current[] = nil end end |