Class: Aws::SdbInterface

Inherits:
Object show all
Defined in:
lib/active_record/connection_adapters/simpledb_adapter/misc/aws_overrides.rb

Instance Method Summary collapse

Instance Method Details

#delete_attributes(domain_name, item_name, attributes = nil, expected_attributes = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/active_record/connection_adapters/simpledb_adapter/misc/aws_overrides.rb', line 10

def delete_attributes(domain_name, item_name, attributes = nil, expected_attributes = {})
  params = params_with_attributes(domain_name, item_name, attributes, false, expected_attributes)
  link = generate_request("DeleteAttributes", params)
  request_info( link, QSdbSimpleParser.new )
rescue Exception
  on_exception
end

#put_attributes(domain_name, item_name, attributes, replace = false, expected_attributes = {}) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/active_record/connection_adapters/simpledb_adapter/misc/aws_overrides.rb', line 2

def put_attributes(domain_name, item_name, attributes, replace = false, expected_attributes = {})
  params = params_with_attributes(domain_name, item_name, attributes, replace, expected_attributes)
  link = generate_request("PutAttributes", params)
  request_info( link, QSdbSimpleParser.new )
rescue Exception
  on_exception
end