class OhMyLog::Log::Request
the request is what the user is trying to do
Attributes
date[R]
method[R]
params[R]
path[R]
sender[R]
status[R]
Public Class Methods
new(args)
click to toggle source
# File lib/oh_my_log/request.rb, line 7 def initialize(args) @sender = args[:sender] @date = args[:date] @params = args[:params] @method = args[:method] @status = args[:status] @path = args[:path] end
Public Instance Methods
to_s()
click to toggle source
# File lib/oh_my_log/request.rb, line 16 def to_s user_info = PrintableUser.new(@sender, OhMyLog::Log.configuration.user_fields) rescue nil sender = user_info || Thread.current["remote_ip"] "#{@date}, #{sender}, #{@method}, #{@params}, #{@status}" end