Module: EventStore::HTTP::ReadEvent::LogText
- Defined in:
- lib/event_store/http/read_event/log_text.rb
Class Method Summary collapse
Class Method Details
.attributes(uri, response: nil) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/event_store/http/read_event/log_text.rb', line 5 def self.attributes(uri, response: nil) text = "URI: #{uri}" unless response.nil? text << ", StatusCode: #{response.code}, ReasonPhrase: #{response.message}, ContentLength: #{response&.body.bytesize.to_i}" end text end |