ExVCR.Recorder (exvcr v0.17.0)

View Source

Provides data saving/loading capability for HTTP interactions.

Summary

Functions

Returns the file path of the save/load target, based on the custom_mode(true or false).

Load record-data from json file.

Provides entry point to be called from :meck library. HTTP request arguments are specified as args parameter. If response is not found in the cache, access to the server. Implementation for global mock.

Provides entry point to be called from :meck library. HTTP request arguments are specified as args parameter. If response is not found in the cache, access to the server.

Save record-data into json file.

Initialize recorder.

Functions

append(recorder, x)

get(recorder)

get_file_path(recorder)

Returns the file path of the save/load target, based on the custom_mode(true or false).

load_from_json(recorder)

Load record-data from json file.

options(recorder)

pop(recorder)

request(request)

Provides entry point to be called from :meck library. HTTP request arguments are specified as args parameter. If response is not found in the cache, access to the server. Implementation for global mock.

request(recorder, request)

Provides entry point to be called from :meck library. HTTP request arguments are specified as args parameter. If response is not found in the cache, access to the server.

save(recorder)

Save record-data into json file.

set(responses, recorder)

start(options)

Initialize recorder.

update(recorder, finder, updater)