Sha256: 154106c3fc7cf8b619befe05dd0c54c40ac6f56f8382842f0f8f76651d1e01d1
Contents?: true
Size: 1.34 KB
Versions: 13
Compression:
Stored size: 1.34 KB
Contents
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # 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 'time' module AWS class SimpleDB # @private class Client < Core::Client AWS.register_autoloads(self, 'aws/simple_db/client') do autoload :Options, 'options' autoload :XML, 'xml' end include Core::ConfiguredClientMethods API_VERSION = '2009-04-15' REGION_US_E1 = 'sdb.amazonaws.com' REGION_US_W1 = 'sdb.us-west-1.amazonaws.com' REGION_EU_W1 = 'sdb.eu-west-1.amazonaws.com' REGION_APAC_SE1 = 'sdb.ap-southeast-1.amazonaws.com' REQUEST_CLASS = SimpleDB::Request configure_client def valid_domain_name? name self.class.valid_domain_name?(name) end def self.valid_domain_name? name name.to_s =~ /^[a-z_\-\.]{3,255}$/i ? true : false end end end end
Version data entries
13 entries across 13 versions & 1 rubygems