# File lib/dm-core/resource.rb, line 480 def attributes properties.map do |p| [p.name, send(p.getter)] if p.reader_visibility == :public end.compact.to_hash end