Class: MockAWS::SimpleDB
- Inherits:
-
Object
- Object
- MockAWS::SimpleDB
- Defined in:
- lib/MockAWS/SimpleDB.rb
Instance Method Summary collapse
- #create_domain(domain_name) ⇒ Object
- #delete_attributes(domain_name, item_name, attributes = {}) ⇒ Object
- #delete_domain(domain_name) ⇒ Object
- #get_attributes(domain_name, item_name, attribute_name = nil) ⇒ Object
-
#initialize(*params) ⇒ SimpleDB
constructor
A new instance of SimpleDB.
- #list_domains(max_domains = 100) ⇒ Object
-
#logger=(logger) ⇒ Object
testing.
- #put_attributes(domain_name, item_name, attributes, replace = false) ⇒ Object
- #query(domain_name, query_expression = nil, options = {:fetch_all=>true}) ⇒ Object
- #reset ⇒ Object
Constructor Details
#initialize(*params) ⇒ SimpleDB
Returns a new instance of SimpleDB.
5 6 |
# File 'lib/MockAWS/SimpleDB.rb', line 5 def initialize(*params) end |
Instance Method Details
#create_domain(domain_name) ⇒ Object
12 13 14 |
# File 'lib/MockAWS/SimpleDB.rb', line 12 def create_domain(domain_name) true end |
#delete_attributes(domain_name, item_name, attributes = {}) ⇒ Object
24 25 26 |
# File 'lib/MockAWS/SimpleDB.rb', line 24 def delete_attributes(domain_name, item_name, attributes = {}) true end |
#delete_domain(domain_name) ⇒ Object
16 17 18 |
# File 'lib/MockAWS/SimpleDB.rb', line 16 def delete_domain(domain_name) true end |
#get_attributes(domain_name, item_name, attribute_name = nil) ⇒ Object
28 29 30 |
# File 'lib/MockAWS/SimpleDB.rb', line 28 def get_attributes(domain_name, item_name, attribute_name = nil) true end |
#list_domains(max_domains = 100) ⇒ Object
8 9 10 |
# File 'lib/MockAWS/SimpleDB.rb', line 8 def list_domains(max_domains = 100) [] end |
#logger=(logger) ⇒ Object
testing
37 38 39 |
# File 'lib/MockAWS/SimpleDB.rb', line 37 def logger=(logger) @@log = logger end |
#put_attributes(domain_name, item_name, attributes, replace = false) ⇒ Object
20 21 22 |
# File 'lib/MockAWS/SimpleDB.rb', line 20 def put_attributes(domain_name, item_name, attributes, replace=false) true end |
#query(domain_name, query_expression = nil, options = {:fetch_all=>true}) ⇒ Object
32 33 34 |
# File 'lib/MockAWS/SimpleDB.rb', line 32 def query(domain_name, query_expression=nil, ={:fetch_all=>true}) true end |
#reset ⇒ Object
41 42 43 |
# File 'lib/MockAWS/SimpleDB.rb', line 41 def reset @context = [] end |