Class AWS::SimpleDB::Item
In: lib/aws/simple_db/item.rb
Parent: Object

Represents a single item in a SimpleDB domain. You can use this class to delete the item or get its data. You can also use it to access the {AttributeCollection} for the item in order to add, remove, or read the item‘s attributes.

  item = AWS::SimpleDB.new.domains['mydomain'].items['item-id']

Methods

==   attributes   data   delete   eql?   new  

Included Modules

Core::Model ExpectConditionOption ConsistentReadOption

Attributes

domain  [R]  @return [Domain] The domain this item belongs to.
name  [R]  @return [String] The item name.

Public Class methods

@param [Domain] domain The domain the item belongs to @param [String] name The name of the item in SimpleDB. @param [Hash] options

Public Instance methods

@return [AttributeCollection] A collection representing all attributes

  for this item.

Returns all of the item‘s attributes in an {ItemData} instance. @return [ItemData] An object with all of the loaded attribute names

  and values for this item.

Deletes the item and all of its attributes from SimpleDB. @param [Hash] options @option options [Hash] :if Pass a hash with a single key (attribute

  name) and a single value (the attribute value).  This causes the
  delete to become conditional.

@option options [String,Symbol] :unless Pass an attribute name. This

  causes the delete to become conditional on that attribute not
  existing.

@return [nil]

eql?(other)

Alias for #==

[Validate]