class BiolaLogs::Generators::Headers
Public Instance Methods
to_hash()
click to toggle source
# 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
Private Instance Methods
host()
click to toggle source
# File lib/biola_logs/generators/headers.rb, line 27 def host event.payload[:host] #requires adding :host to payload end
method_supported?()
click to toggle source
# File lib/biola_logs/generators/headers.rb, line 31 def method_supported? # SUPPORTED_HTTP_METHODS.include?(event.payload[:method]) true end
session_id()
click to toggle source
# File lib/biola_logs/generators/headers.rb, line 19 def session_id event.payload[:session_id] #requires adding :session_id to payload end
uuid()
click to toggle source
# File lib/biola_logs/generators/headers.rb, line 23 def uuid event.payload[:uuid] #requires adding :uuid to payload end