lib/aws/simple_db.rb in aws-sdk-1.1.3 vs lib/aws/simple_db.rb in aws-sdk-1.1.4

- old
+ new

@@ -9,15 +9,12 @@ # or in the "license" file accompanying this file. This file is # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. -require 'aws/common' -require 'aws/service_interface' -require 'aws/simple_db/errors' -require 'aws/simple_db/client' -require 'aws/simple_db/domain_collection' +require 'aws/core' +require 'aws/simple_db/config' module AWS # This class is the starting point for working with Amazon SimpleDB. # @@ -139,10 +136,28 @@ # # one request to delete the colors attribute # colors.delete # class SimpleDB - include ServiceInterface + AWS.register_autoloads(self, 'aws/simple_db') do + autoload :Attribute, 'attribute' + autoload :AttributeCollection, 'attribute_collection' + autoload :Client, 'client' + autoload :ConsistentReadOption, 'consistent_read_option' + autoload :DeleteAttributes, 'delete_attributes' + autoload :Domain, 'domain' + autoload :DomainCollection, 'domain_collection' + autoload :DomainMetadata, 'domain_metadata' + autoload :Errors, 'errors' + autoload :ExpectConditionOption, 'expect_condition_option' + autoload :Item, 'item' + autoload :ItemCollection, 'item_collection' + autoload :ItemData, 'item_data' + autoload :PutAttributes, 'put_attributes' + autoload :Request, 'request' + end + + include Core::ServiceInterface # Returns a collection object that represents the domains in your # account. # # @return [DomainCollection] Returns a collection representing all your