An example of a canonical resource object interface in ruby.