Sha256: 0a99af6265bf5ac7552be7978eedc216328cfb20321c084ad3814c7d367a23bd

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

# encoding: utf-8
module Zeusd
  module Log
    module Line

      class Update < Base

        attr_reader :time

        def self.matches_line?(line)
          !!line[/\s=====$/]
        end

        def time
          @time ||= Time.parse(self[/UPDATED\s(.*?)\s=/, 1])
        end
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zeusd-0.3.1 lib/zeusd/log/line/update.rb
zeusd-0.3.0 lib/zeusd/log/line/update.rb