module EventStore::HTTP::ReadStream::LogText
Public Class Methods
attributes(stream, position, batch_size, direction, response: nil)
click to toggle source
# File lib/event_store/http/read_stream/log_text.rb, line 5 def self.attributes(stream, position, batch_size, direction, response: nil) text = "Stream: #{stream}, Position: #{position}, BatchSize: #{batch_size}" unless response.nil? text << ", StatusCode: #{response.code}, ReasonPhrase: #{response.message}, ContentLength: #{response.body&.bytesize.to_i}" end text end