class <%= class_name %><%= " < #{options[:parent].classify}" if options[:parent] %> <% unless options[:parent] -%> include Ripple::<%= "Embedded" if options[:embedded] || options[:embedded_in] %>Document <% if options[:embedded_in] -%>embedded_in :<%= options[:embedded_in].underscore %><% end -%> <% end -%> <% attributes.reject{|attr| attr.reference?}.each do |attribute| -%> property :<%= attribute.name %>, <%= attribute.type_class %> <% end -%> end