Class: JIJI::EventOut

Inherits:
BaseOut show all
Defined in:
lib/jiji/output.rb

Overview

イベントデータの出力先

Instance Attribute Summary

Attributes inherited from BaseOut

#options, #time

Instance Method Summary collapse

Methods inherited from BaseOut

#each, #initialize, #save, #set_properties

Constructor Details

This class inherits a constructor from JIJI::BaseOut

Instance Method Details

#aggregatorsObject



143
144
145
# File 'lib/jiji/output.rb', line 143

def aggregators
  [JIJI::Dao::RawAggregator.new]
end

#put(type, message) ⇒ Object

ログを書き込む



139
140
141
142
# File 'lib/jiji/output.rb', line 139

def put( type, message )
  @dao << JIJI::Dao::BasicTimedData.new(
    [type.to_s, message, @time.to_i.to_s], @time)
end