View Source ExVCR.Recorder (exvcr v0.15.2)

Provides data saving/loading capability for HTTP interactions.

Link to this section 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.

Link to this section Functions

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

Link to this function

load_from_json(recorder)

View Source

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.

Link to this function

request(recorder, request)

View Source

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.

Link to this function

set(responses, recorder)

View Source

Initialize recorder.

Link to this function

update(recorder, finder, updater)

View Source