class Ey::Logger::MachineParser
Attributes
data[R]
tag[R]
Public Class Methods
new(tag, data)
click to toggle source
# File lib/ey/logger/machine_parser.rb, line 9 def initialize(tag, data) @tag, @data = tag, data end
parse(line)
click to toggle source
# File lib/ey/logger/machine_parser.rb, line 2 def self.parse(line) tag, data = line.match(/\A\[(\S+)\]\s+(\{.*\})\z/).captures new(tag, JSON.load(data)) end