Class: BiolaLogs::Generators::Headers
- Defined in:
- lib/biola_logs/generators/headers.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BiolaLogs::Generators::Base
Instance Method Details
#to_hash ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/biola_logs/generators/headers.rb', line 5 def to_hash if method_supported? h = {} h[:session_id] = session_id if session_id h[:host_name] = host if host h[:request_id] = uuid if uuid h else {} end end |