Keeps track of the cassette persisters in a hash-like object
Details
There's only one option: FileSystem
Private Methods
persister_get()
Gets and sets a named persister
Methods
Method new()
Create a new Persisters
object
Usage
Persisters$new(persisters = list(), name = "FileSystem")
Examples
(aa <- Persisters$new())
#> <Persisters>
#> Public:
#> clone: function (deep = FALSE)
#> initialize: function (persisters = list(), name = "FileSystem")
#> name: FileSystem
#> persisters: R6ClassGenerator
#> Private:
#> persister_get: function ()
aa$name
#> [1] "FileSystem"
aa$persisters
#> <FileSystem> object generator
#> Public:
#> file_name: NULL
#> write_fxn: NULL
#> content: NULL
#> path: NULL
#> write2disk: FALSE
#> initialize: function (file_name = NULL, write_fxn = NULL, content = NULL,
#> get_cassette: function (file_name = NULL)
#> is_empty: function ()
#> set_cassette: function (file_name = NULL, content)
#> clone: function (deep = FALSE)
#> Private:
#> storage_location: function ()
#> absolute_path_to_file: function (x, y)
#> Parent env: <environment: namespace:vcr>
#> Locked objects: TRUE
#> Locked class: FALSE
#> Portable: TRUE
yaml_serializer <- aa$persisters$new()
yaml_serializer
#> <FileSystem>
#> Public:
#> clone: function (deep = FALSE)
#> content: NULL
#> file_name: NULL
#> get_cassette: function (file_name = NULL)
#> initialize: function (file_name = NULL, write_fxn = NULL, content = NULL,
#> is_empty: function ()
#> path: .
#> set_cassette: function (file_name = NULL, content)
#> write2disk: FALSE
#> write_fxn: NULL
#> Private:
#> absolute_path_to_file: function (x, y)
#> storage_location: function ()