View Source ExVCR.JSON (exvcr v0.15.2)

Provides a feature to store/load cassettes in json format.

Link to this section Summary

Functions

Loads the JSON files based on the fixture name and options. For options, this method just refers to the :custom attribute is set or not.

Reads and parse the json file located at the specified file_name.

Save responses into the json file.

Link to this section Functions

Link to this function

load(file_name, custom_mode, adapter)

View Source

Loads the JSON files based on the fixture name and options. For options, this method just refers to the :custom attribute is set or not.

Link to this function

read_json_file(file_name)

View Source

Reads and parse the json file located at the specified file_name.

Link to this function

save(file_name, recordings)

View Source

Save responses into the json file.