Class: Pangea::Magma::Optimization::Retries

Inherits:
Struct
  • Object
show all
Defined in:
lib/pangea/magma/optimization.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backoff_msObject

Returns the value of attribute backoff_ms

Returns:

  • (Object)

    the current value of backoff_ms



29
30
31
# File 'lib/pangea/magma/optimization.rb', line 29

def backoff_ms
  @backoff_ms
end

#maxObject

Returns the value of attribute max

Returns:

  • (Object)

    the current value of max



29
30
31
# File 'lib/pangea/magma/optimization.rb', line 29

def max
  @max
end

Instance Method Details

#to_hObject



30
31
32
# File 'lib/pangea/magma/optimization.rb', line 30

def to_h
  { max: max, backoff_ms: backoff_ms }.compact
end