Class: BiolaLogs::Generators::Headers

Inherits:
Base
  • Object
show all
Defined in:
lib/biola_logs/generators/headers.rb

Instance Attribute Summary

Attributes inherited from Base

#event

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BiolaLogs::Generators::Base

Instance Method Details

#to_hashObject



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