Class: RailsObservatory::RequestSerializer
- Inherits:
-
Object
- Object
- RailsObservatory::RequestSerializer
- Defined in:
- lib/rails_observatory/serializers/request_serializer.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.klass ⇒ Object
13 14 15 |
# File 'lib/rails_observatory/serializers/request_serializer.rb', line 13 def self.klass ActionDispatch::Request end |
Instance Method Details
#serialize(request) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/rails_observatory/serializers/request_serializer.rb', line 3 def serialize(request) { method: request.method, path: request.path, format: request.format, route_pattern: request.route_uri_pattern, headers: Serializer.serialize(request.headers), } end |