Sha256: f155718a0a89c82f2bc6fa42685be1944ea0564f0569b7adf35bbebf0f6a2e7c
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true module Stenotype module Adapters # # An adapter implementing method {#publish} to send data to STDOUT # class StdoutAdapter < Base # # @param event_data {Hash} The data to be published to STDOUT # def publish(event_data, **additional_arguments) client.info(event_data, **additional_arguments) end private def client @client ||= Logger.new(STDOUT) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stenotype-0.1.0 | lib/stenotype/adapters/stdout_adapter.rb |