Module: Stitches::CallingServiceName
- Included in:
- Api::ApiController
- Defined in:
- lib/stitches/calling_service_name.rb
Constant Summary collapse
- DEFAULT_CALLING_SERVICE_HEADER =
"X-StitchFix-Calling-Service"
Instance Method Summary collapse
Instance Method Details
#calling_service_name ⇒ Object
5 6 7 8 |
# File 'lib/stitches/calling_service_name.rb', line 5 def calling_service_name @calling_service_name ||= request.headers[calling_service_header_name].presence || "" end |