Sha256: 67ef6917e13c4b7b7a3fabc4e4a6f504c7535728971f1634908bcf451dc36bb2

Contents?: true

Size: 322 Bytes

Versions: 3

Compression:

Stored size: 322 Bytes

Contents

module Chronicle
  module ETL
    class StdoutLoader < Chronicle::ETL::Loader
      register_connector do |r|
        r.description = 'stdout'
      end

      def load(record)
        serializer = Chronicle::ETL::JSONAPISerializer.new(record)
        puts serializer.serializable_hash.to_json
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chronicle-etl-0.4.0 lib/chronicle/etl/loaders/stdout_loader.rb
chronicle-etl-0.3.1 lib/chronicle/etl/loaders/stdout_loader.rb
chronicle-etl-0.3.0 lib/chronicle/etl/loaders/stdout_loader.rb