Class: RailsObservatory::ResponseSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_observatory/serializers/response_serializer.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.klassObject



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