Class: Wikidotrb::Connector::AjaxModuleConnectorConfig
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - Wikidotrb::Connector::AjaxModuleConnectorConfig
 
 
- Defined in:
 - lib/wikidotrb/connector/ajax.rb
 
Overview
AjaxModuleConnectorConfigの定義
Instance Attribute Summary collapse
- 
  
    
      #attempt_limit  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute attempt_limit.
 - 
  
    
      #request_timeout  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute request_timeout.
 - 
  
    
      #retry_interval  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute retry_interval.
 - 
  
    
      #semaphore_limit  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute semaphore_limit.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AjaxModuleConnectorConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AjaxModuleConnectorConfig.
 
Constructor Details
#initialize(**args) ⇒ AjaxModuleConnectorConfig
Returns a new instance of AjaxModuleConnectorConfig.
      63 64 65 66 67 68 69  | 
    
      # File 'lib/wikidotrb/connector/ajax.rb', line 63 def initialize(**args) super self.request_timeout ||= 20 self.attempt_limit ||= 3 self.retry_interval ||= 5 self.semaphore_limit ||= 10 end  | 
  
Instance Attribute Details
#attempt_limit ⇒ Object
Returns the value of attribute attempt_limit
      59 60 61  | 
    
      # File 'lib/wikidotrb/connector/ajax.rb', line 59 def attempt_limit @attempt_limit end  | 
  
#request_timeout ⇒ Object
Returns the value of attribute request_timeout
      59 60 61  | 
    
      # File 'lib/wikidotrb/connector/ajax.rb', line 59 def request_timeout @request_timeout end  | 
  
#retry_interval ⇒ Object
Returns the value of attribute retry_interval
      59 60 61  | 
    
      # File 'lib/wikidotrb/connector/ajax.rb', line 59 def retry_interval @retry_interval end  | 
  
#semaphore_limit ⇒ Object
Returns the value of attribute semaphore_limit
      59 60 61  | 
    
      # File 'lib/wikidotrb/connector/ajax.rb', line 59 def semaphore_limit @semaphore_limit end  |