lib/core/service_layer/services_manager.rb
# this method is called every time the services.identity or
# services.volume ect. in controller is requested.
# See InstanceMethods#services
this method is called every time the services.identity or
services.volume ect. in controller is requested.
this method is called every time the services . identity or services . volume ect . in controller is requested .
def method_missing(method_sym, *arguments, &block)
        if self.class.service_class(method_sym)
          service = instance_variable_get("@#{method_sym}")
          return service if service
          service = self.class.service(method_sym, @api_client)
          service.service_manager = self
          instance_variable_set("@#{method_sym}", service)
        else
          super
        end
      end
def method_missing ( method_sym , * arguments , & block ) if self . class . service_class ( method_sym ) service = instance_variable_get ( "@#{method_sym}" ) return service if service service = self . class . service ( method_sym , @api_client ) service . service_manager = self instance_variable_set ( "@#{method_sym}" , service ) else super end end
this method is called every time the services.identity or
services.volume ect.
this method is called every time the services . identity or services . volume ect .
# load service from cache if available
method_sym
<not_specific>
arguments
<not_specific>
block
<not_specific>