Module: Fog::AWS::SimpleDB

Defined in:
lib/fog/aws/simpledb.rb,
lib/fog/aws/requests/simpledb/select.rb,
lib/fog/aws/requests/simpledb/list_domains.rb,
lib/fog/aws/requests/simpledb/create_domain.rb,
lib/fog/aws/requests/simpledb/delete_domain.rb,
lib/fog/aws/requests/simpledb/get_attributes.rb,
lib/fog/aws/requests/simpledb/put_attributes.rb,
lib/fog/aws/requests/simpledb/domain_metadata.rb,
lib/fog/aws/requests/simpledb/delete_attributes.rb,
lib/fog/aws/requests/simpledb/batch_put_attributes.rb

Defined Under Namespace

Classes: Mock, Real

Class Method Summary collapse

Class Method Details

.new(options = {}) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/aws/simpledb.rb', line 5

def self.new(options={})

  require 'fog/aws/requests/simpledb/batch_put_attributes'
  require 'fog/aws/requests/simpledb/create_domain'
  require 'fog/aws/requests/simpledb/delete_attributes'
  require 'fog/aws/requests/simpledb/delete_domain'
  require 'fog/aws/requests/simpledb/domain_metadata'
  require 'fog/aws/requests/simpledb/get_attributes'
  require 'fog/aws/requests/simpledb/list_domains'
  require 'fog/aws/requests/simpledb/put_attributes'
  require 'fog/aws/requests/simpledb/select'

  if Fog.mocking?
    Fog::AWS::SimpleDB::Mock.new(options)
  else
    Fog::AWS::SimpleDB::Real.new(options)
  end
end

.reset_data(keys = Mock.data.keys) ⇒ Object


24
25
26
# File 'lib/fog/aws/simpledb.rb', line 24

def self.reset_data(keys=Mock.data.keys)
  Mock.reset_data(keys)
end