Module: FmRest::Spyke::Model::Http
- Extended by:
- ActiveSupport::Concern
- Included in:
- FmRest::Spyke::Model
- Defined in:
- lib/fmrest/spyke/model/http.rb
Class Method Summary collapse
- .last_request_metadata(key: last_request_metadata_key) ⇒ Object
-
.request(*args) ⇒ Object
Spyke override -- Keeps metadata in thread-local class variable.
Class Method Details
.last_request_metadata(key: last_request_metadata_key) ⇒ Object
24 25 26 |
# File 'lib/fmrest/spyke/model/http.rb', line 24 def (key: ) Thread.current[key] end |
.request(*args) ⇒ Object
Spyke override -- Keeps metadata in thread-local class variable.
18 19 20 21 22 |
# File 'lib/fmrest/spyke/model/http.rb', line 18 def request(*args) super.tap do |r| Thread.current[] = r. end end |