lib/aws/simple_db/item.rb in aws-sdk-1.8.5 vs lib/aws/simple_db/item.rb in aws-sdk-1.9.0
- old
+ new
@@ -17,11 +17,11 @@
# 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']
+ # item = AWS::SimpleDB.new.domains['mydomain'].items['item-id']
#
class Item
include Core::Model
include ExpectConditionOption
@@ -33,11 +33,11 @@
def initialize domain, name, options = {}
@domain = domain
@name = name
super
end
-
+
# @return [Domain] The domain this item belongs to.
attr_reader :domain
# @return [String] The item name.
attr_reader :name
@@ -48,13 +48,13 @@
AttributeCollection.new(self)
end
# 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
+ # @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.
+ # 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]
def delete options = {}
@@ -78,10 +78,10 @@
r = client.get_attributes(get_opts)
ItemData.new(:name => name, :domain => domain, :response_object => r.data)
end
def == other
- other.is_a?(Item) and
+ other.is_a?(Item) and
other.domain == domain and
other.name == name
end
alias_method :eql?, :==