Class: Spotlight::ValidityChecker
- Inherits:
 - 
      Object
      
        
- Object
 - Spotlight::ValidityChecker
 
 
- Defined in:
 - app/services/spotlight/validity_checker.rb
 
Overview
Extension point for downstream applications to override to check if a delayed job still needs to run
Instance Method Summary collapse
- 
  
    
      #check(_job, validity_token: nil)  ⇒ boolean 
    
    
  
  
  
  
  
  
  
  
  
    
Check if the token is still valid for the model.
 - 
  
    
      #mint(_job)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Return a validity token.
 
Instance Method Details
#check(_job, validity_token: nil) ⇒ boolean
Check if the token is still valid for the model
      16 17 18  | 
    
      # File 'app/services/spotlight/validity_checker.rb', line 16 def check(_job, validity_token: nil) validity_token || true end  | 
  
#mint(_job) ⇒ Object
Return a validity token
      10  | 
    
      # File 'app/services/spotlight/validity_checker.rb', line 10 def mint(_job); end  |