class with methods for serializing via the yaml package
vcr::Serializer
-> YAML
new()
Create a new YAML object
YAML$new(path = NULL)
path
(character) path to the cassette, excluding the cassette directory and the file extension
A new YAML
object
serialize()
Serializes the given hash using internal fxn write_yaml
YAML$serialize(x, path, bytes)
x
(list) the object to serialize
path
(character) the file path
bytes
(logical) whether to preserve exact body bytes or not
(character) the YAML string to write to disk
deserialize()
Deserializes the content at the path using yaml::yaml.load_file
YAML$deserialize(cassette)
cassette
the current cassette object so it's properties can be retrieved
(list) the deserialized object, an R list
clone()
The objects of this class are cloneable with this method.
YAML$clone(deep = FALSE)
deep
Whether to make a deep clone.