lib/core/service_layer/services_manager.rb
# create a service for given params
create a service for given params
create a service for given params
def service(service_name, api_client)
          klazz = service_class(service_name)
          unless klazz < Core::ServiceLayer::Service
            raise ServiceParentError,
                  "service #{klazz.name} is not a subclass of \
                  Core::ServiceLayer::Service"
          end
          klazz.try(:new, api_client)
        end
def service ( service_name , api_client ) klazz = service_class ( service_name ) unless klazz < Core :: ServiceLayer :: Service raise ServiceParentError , "service #{klazz.name} is not a subclass of \
                  Core::ServiceLayer::Service" end klazz . try ( :new , api_client ) end
create a service for given params
create a service for given params
# raise an error unless the class inherits from Service # create an instance of the service class
service_name
<not_specific>
api_client
<not_specific>