Method: Timber::Events::HTTPResponse#initialize
- Defined in:
- lib/timber/events/http_response.rb
#initialize(attributes) ⇒ HTTPResponse
Returns a new instance of HTTPResponse.
10 11 12 13 14 |
# File 'lib/timber/events/http_response.rb', line 10 def initialize(attributes) @status = attributes[:status] || raise(ArgumentError.new(":status is required")) @time_ms = attributes[:time_ms] || raise(ArgumentError.new(":time_ms is required")) @additions = attributes[:additions] end |