# File lib/deltacloud/models/base_model.rb, line 47 def to_hash out = {} self.attributes.each do |attribute| if self.send("#{attribute}""#{attribute}") out.merge!({ attribute => self.send("#{attribute}""#{attribute}") } ) end end out end