title: Get DataMapper Model Properties
body: <p>Is there a way to get the properties of a model with DataMapper? For example:</p>
  
  <pre><code>require 'rubygems'
  require 'datamapper'
  
  class User
    include DataMapper::Resource
  
    property :id, Serial
    property :name, String
  end
  </code></pre>
  
  <p>Could I get the properties of <code>User</code> in an array or a hash?</p>