Is there a way to get model properties using DataMapper? For instance:
require 'rubygems'
require 'datamapper'
class User
include DataMapper::Resource
property :id, Serial
property :name, String
end
Can I get properties Userin an array or hash?
source
share