module AWS::Core::ServiceInterface
def self.included base
def self.included base base.send(:attr_reader, :config) base.send(:attr_reader, :client) base.module_eval('module Errors; end') unless base::Errors.include?(Errors) base::Errors.module_eval { include Errors } end AWS::Core::MetaUtils.extend(base) do # @api private def endpoint_prefix prefix = nil, options = {} if prefix @endpoint_prefix = prefix @global_endpoint = !!options[:global] end @endpoint_prefix end # @api private def global_endpoint? @global_endpoint end def regions RegionCollection.new(:service => self) end end end
def endpoint_prefix prefix = nil, options = {}
- Api: - private
def endpoint_prefix prefix = nil, options = {} if prefix @endpoint_prefix = prefix @global_endpoint = !!options[:global] end @endpoint_prefix end
def global_endpoint?
- Api: - private
def global_endpoint? @global_endpoint end
def initialize options = {}
(**options)-
:config(Configuration) -- An AWS::Configuration
Parameters:
-
options(Hash) --
Other tags:
- See: AWS::Cofiguration -
def initialize options = {} options = options.dup @config = (options.delete(:config) || AWS.config) @config = @config.with(options) @client = @config.send(Inflection.ruby_name(self.class.name.split('::').last) + '_client') end
def inspect
-
(String)-
def inspect "<#{self.class}>" end
def regions
def regions RegionCollection.new(:service => self) end