Class: FbGraph::RequestFilters::Scrubber

Inherits:
Object
  • Object
show all
Defined in:
lib/fb_graph/request_filters/scrubber.rb

Instance Method Summary collapse

Instance Method Details

#filter_request(request) ⇒ Object



4
5
6
# File 'lib/fb_graph/request_filters/scrubber.rb', line 4

def filter_request(request)
  # nothing to do
end

#filter_response(request, response) ⇒ Object



8
9
10
# File 'lib/fb_graph/request_filters/scrubber.rb', line 8

def filter_response(request, response)
  response.body.scrub! if response.body.respond_to?(:scrub!)
end