class LogfileInterval::ParsedLine::Base

Attributes

data[R]

Public Class Methods

new(line) click to toggle source
# File lib/logfile_interval/parsed_line/base.rb, line 10
def initialize(line)
  @data = self.class.parse(line)
  @valid = @data ? true : false
  @skip = @data ? @data[:skip] : false
  @skip_with_exceptions = @data ? @data[:skip_with_exceptions] : false
end

Public Instance Methods

[](name) click to toggle source
# File lib/logfile_interval/parsed_line/base.rb, line 33
def [](name)
  @data[name]
end
skip?() click to toggle source
# File lib/logfile_interval/parsed_line/base.rb, line 21
def skip?
  @skip
end
skip_with_exceptions?() click to toggle source
# File lib/logfile_interval/parsed_line/base.rb, line 25
def skip_with_exceptions?
  @skip_with_exceptions
end
time() click to toggle source
# File lib/logfile_interval/parsed_line/base.rb, line 29
def time
  raise NotImplemented
end
valid?() click to toggle source
# File lib/logfile_interval/parsed_line/base.rb, line 17
def valid?
  @valid
end