Class: FbGraph2::RequestFilter::Debugger

Inherits:
Object
  • Object
show all
Defined in:
lib/fb_graph2/request_filter/debugger.rb

Instance Method Summary collapse

Instance Method Details

#filter_request(request) ⇒ Object



4
5
6
7
# File 'lib/fb_graph2/request_filter/debugger.rb', line 4

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

#filter_response(request, response) ⇒ Object



9
10
11
12
# File 'lib/fb_graph2/request_filter/debugger.rb', line 9

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