Class: Docs::RequestSubscriber

Inherits:
Subscriber
  • Object
show all
Defined in:
lib/docs/subscribers/request_subscriber.rb

Instance Method Summary collapse

Methods inherited from Subscriber

subscribe_to

Instance Method Details

#response(event) ⇒ Object


5
6
7
# File 'lib/docs/subscribers/request_subscriber.rb', line 5

def response(event)
  log "Request: #{format_url event.payload[:url]} [#{event.payload[:response].code}] [#{event.duration.round}ms]"
end