# File lib/amazon.rb, line 122 def to_h hash = {} self.properties.each do |property| key = property[1..-1] val = self.instance_variable_get(property) hash[key] = val end hash end