Sha256: b3d06b94fee0ba51a6775c8571cb71e43f854c50e92b8a08dca0eb1c1506230d

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

module LineLog
  class MessageBuilder
    def initialize(event, status, began_at)
      @event = event
      @status = status
      @began_at = began_at
    end

    def call
      data = LineLog::RequestDataExtractor.call(@event, @status, @began_at)
      formatted_message = LineLog::Customizer.formatter.call(data)

      formatted_message
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
line_log-0.1.1 lib/line_log/message_builder.rb
line_log-0.1.0 lib/line_log/message_builder.rb