new Method( [handler] [, options])
Constructor for a Jayson Method
Parameters:
| Name | Type | Argument | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
handler | 
            
            function | 
                
                    <optional> | 
            
            
            Function to set as handler | ||||||||||||||||||||
options | 
            
            Object | 
                
                    <optional> | 
            
            
            
                Properties
  | 
        
- Source:
 
Methods
- 
    
execute(server, requestParams [, context], callback)
Executes this method in the context of a server
 - 
    
    
    
    
    
        
Parameters:
Name Type Argument Description serverServer requestParamsArray | Object contextObject <optional> 
callbackfunction - Source:
 
 - 
    
getHandler()
Returns the handler function associated with this method
 - 
    
    
    
    
    
    
- Source:
 
Returns:
- Type
 - function
 
 - 
    
setHandler(handler)
Sets the handler function associated with this method
 - 
    
    
    
    
    
        
Parameters:
Name Type Description handlerfunction - Source: