Method: ActiveRestClient::Recording::ClassMethods#record_response

Defined in:
lib/active_rest_client/recording.rb

#record_response(url = nil, response = nil, &block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/active_rest_client/recording.rb', line 6

def record_response(url = nil, response = nil, &block)
  if url && response && @record_response
    @record_response.call(url, response)
  elsif block
    @record_response = block
  end
end