Sha256: 66bbfb63d16174c3767f2bea0725e00cc1bf73be32c52e650877944abaac6ddb
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
module HttpEventLogger module Event class Headers def initialize(headers) @headers = headers || "" end def [](name) @headers.is_a?(Hash) ? @headers[name] : nil end def to_s @headers.is_a?(String) ? @headers : @headers.map { |key, value| "#{key}: #{value}" }.join(", ") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
http_event_logger-0.1.0.rc1 | ./lib/http_event_logger/event/headers.rb |