If no schema has been
defined for the class (see ActiveResource::schema=), the default
automatic schema is
generated from the current instance’s attributes
# File activeresource/lib/active_resource/base.rb, line 979
def schema
self.class.schema || self.attributes
end