ActiveModel: undefined method `attributes`

Trying to setup a tableless model, and serialize it to XML, but am
getting:

NameError: undefined local variable or method `attributes'

anyone know what I need to get the attributes method defined?

thanks!