class ApacheCrunch::Entry

A parsed entry from the log.

Acts like a hash, in that you get at the log elements (e.g. “url_path”, “remote_host”) by as entry.

Attributes

captured_elements[RW]

Public Class Methods

new() click to toggle source
# File lib/entry.rb, line 12
def initialize
    @captured_elements = {}
    @_value_fetcher = nil

    @_ElementValueFetcher = ElementValueFetcher
end

Public Instance Methods

dep_inject!(element_value_fetcher_cls) click to toggle source
# File lib/entry.rb, line 19
def dep_inject!(element_value_fetcher_cls)
    @_ElementValueFetcher = element_value-fetcher_cls
end
fetch(name) click to toggle source
# File lib/entry.rb, line 23
def fetch(name)
    @_value_fetcher = @_ElementValueFetcher.new if @_value_fetcher.nil?
    @_value_fetcher.fetch(self, name)
end