# File lib/aws/simple_db/item_data.rb, line 33 def initialize(opts = {}) @name = opts[:name] @attributes = opts[:attributes] @domain = opts[:domain] if obj = opts[:response_object] @name ||= obj.name if obj.respond_to?(:name) if obj.respond_to?(:attributes) @attributes ||= obj.attributes.inject({}) do |m, att| m[att.name] ||= [] m[att.name] << att.value m end end end end