vembedr-s3-classes: vembedr S3 Classes

Description Details


Knowledge of these classes is not needed for day-to-day use. Rather, it is a bookkeeping device used to make it clearer to a developer how to add a new service.


We use S3 classes to distinguish an embed object, and to denote which service it uses. Objects of these classes are created by embed_url() and each service's embed function.


There is an additional class attached according to the service:

To support parsing, there is an internal S3 class attached to the URL being processed. It is named according to the service:

vembedr documentation built on Oct. 23, 2020, 8:26 p.m.