Class: FbGraph::RequestFilters::Debugger

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

Instance Method Summary collapse

Instance Method Details

#filter_request(request) ⇒ Object


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

def filter_request(request)
  started = "======= [FbGraph] API REQUEST STARTED ======="
  log started, request.dump
end

#filter_response(request, response) ⇒ Object


9
10
11
12
# File 'lib/fb_graph/request_filters/debugger.rb', line 9

def filter_response(request, response)
  finished = "======= [FbGraph] API REQUEST FINISHED ======="
  log '-' * 50, response.dump, finished
end