Class: RailsObservatory::ResponseSerializer
- Inherits:
-
Object
- Object
- RailsObservatory::ResponseSerializer
- Defined in:
- lib/rails_observatory/serializers/response_serializer.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.klass ⇒ Object
10 11 12 |
# File 'lib/rails_observatory/serializers/response_serializer.rb', line 10 def self.klass ActionDispatch::Response end |
Instance Method Details
#serialize(response) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/rails_observatory/serializers/response_serializer.rb', line 3 def serialize(response) { status: response.status, # headers: Serializer.serialize(response.headers), } end |