Module: Deas::SummaryLine

Defined in:
lib/deas/logging.rb

Class Method Summary collapse

Class Method Details

.keysObject



122
123
124
# File 'lib/deas/logging.rb', line 122

def self.keys
  %w{time status method path handler params splat redir}
end

.new(line_attrs) ⇒ Object



125
126
127
128
129
# File 'lib/deas/logging.rb', line 125

def self.new(line_attrs)
  self.keys.select{ |k| line_attrs.key?(k) }.
            map{ |k| "#{k}=#{line_attrs[k].inspect}"  }.
            join(' ')
end