class AWS::SimpleDB::ItemData

corresponding {Item} instances.
and the map call in the example above gets the list of
The {ItemCollection#select} call yields instances of ItemData,
map { |data| data.item }
select { |data| data.title == data.title.to_s.reverse }.
items.enum_for(:select).
request to SimpleDB (not counting pagination):
list of items whose titles are palindromes using only a single
returned by a query. For example, you can use this to get the
requests to return data, this class actually stores data
Holds the data for a SimpleDB item. While {Item} only proxies

def initialize(opts = {})

Other tags:
    Private: -
def initialize(opts = {})
  @name = opts[:name]
  @attributes = opts[:attributes]
  @domain = opts[:domain]
  if obj = opts[:response_object]
    @name ||= obj[:name]
    if obj[:attributes]
      @attributes ||= begin
        attributes = {}
        obj[:attributes].each do |attr|
          attributes[attr[:name]] ||= []
          attributes[attr[:name]] << attr[:value]
        end
        attributes
      end
    end
  end
end

def item

Returns:
  • (Item) - The item this data belongs to.
def item
  domain.items[name]
end