Class: Wikidotrb::Connector::AjaxModuleConnectorConfig

Inherits:
Struct
  • Object
show all
Defined in:
lib/wikidotrb/connector/ajax.rb

Overview

AjaxModuleConnectorConfigの定義

Instance Attribute Summary collapse

Instance Method Summary collapse

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_limitObject

Returns the value of attribute attempt_limit

Returns:

  • (Object)

    the current value of attempt_limit



59
60
61
# File 'lib/wikidotrb/connector/ajax.rb', line 59

def attempt_limit
  @attempt_limit
end

#request_timeoutObject

Returns the value of attribute request_timeout

Returns:

  • (Object)

    the current value of request_timeout



59
60
61
# File 'lib/wikidotrb/connector/ajax.rb', line 59

def request_timeout
  @request_timeout
end

#retry_intervalObject

Returns the value of attribute retry_interval

Returns:

  • (Object)

    the current value of retry_interval



59
60
61
# File 'lib/wikidotrb/connector/ajax.rb', line 59

def retry_interval
  @retry_interval
end

#semaphore_limitObject

Returns the value of attribute semaphore_limit

Returns:

  • (Object)

    the current value of semaphore_limit



59
60
61
# File 'lib/wikidotrb/connector/ajax.rb', line 59

def semaphore_limit
  @semaphore_limit
end