Method: IntelligentState#initialize

Defined in:
lib/filestack/utils/utils.rb

#initializeIntelligentState

Returns a new instance of IntelligentState.



11
12
13
14
15
16
17
18
19
# File 'lib/filestack/utils/utils.rb', line 11

def initialize
  @offset = 524_288
  @ok = true
  @alive = true
  @retries = 0
  @backoff = 1
  @offset_index = 0
  @offset_sizes = [524_288, 262_144, 131_072, 65_536, 32_768]
end