lib/aws.rb
def add_service(name, apis = [])
      svc_class = const_set(name, Service.define(name.downcase.to_sym, apis))
      service_classes[svc_class.identifier] = svc_class
      self.class.send(:define_method, svc_class.identifier) do |options = {}|
        svc_class.new(options)
      end
      svc_class
    end
# Registers a new service interface.  This method accepts a constant
# (class name) for the new service class and a list of client API
# versions.
#
#     Aws.add_service(:S3, ['apis/S3-2006-03-01.json'])
#
# This method is called for each service defined in the apis directory of
# this project.
#
# @note You should normally not need to call this method directly.
#
# @param [Symbol] name The name of the new service class.
# @param [Array<String, Seahorse::Model::Api>] apis
# @return [Class<Service>]
Registers a new service interface.  This method accepts a constant
(class name) for the new service class and a list of client API
versions.



This method is called for each service defined in the apis directory of
this project.
Registers a new service interface . This method accepts a constant ( class name ) for the new service class and a list of client API versions . This method is called for each service defined in the apis directory of this project .
def add_service(name, apis = [])
      svc_class = const_set(name, Service.define(name.downcase.to_sym, apis))
      service_classes[svc_class.identifier] = svc_class
      self.class.send(:define_method, svc_class.identifier) do |options = {}|
        svc_class.new(options)
      end
      svc_class
    end
def add_service ( name , apis = [ ] ) svc_class = const_set ( name , Service . define ( name . downcase . to_sym , apis ) ) service_classes [ svc_class . identifier ] = svc_class self . class . send ( :define_method , svc_class . identifier ) do | options = { } | svc_class . new ( options ) end svc_class end
Registers a new service interface.
Registers a new service interface .
None
Class<Service>
name
apis
None
note
You should normally not need to call this method directly.
You should normally not need to call this method directly .