The S3 dispatch assumes naming conventions in the class names. This offers some check.
object with expected return class
character string of class expected
throws error if a mismatch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.