Class: Google::Apis::SheetsV4::IterativeCalculationSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb

Overview

Settings to control how circular dependencies are resolved with iterative calculation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IterativeCalculationSettings

Returns a new instance of IterativeCalculationSettings.



6141
6142
6143
# File 'generated/google/apis/sheets_v4/classes.rb', line 6141

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#convergence_thresholdFloat

When iterative calculation is enabled and successive results differ by less than this threshold value, the calculation rounds stop. Corresponds to the JSON property convergenceThreshold

Returns:

  • (Float)


6133
6134
6135
# File 'generated/google/apis/sheets_v4/classes.rb', line 6133

def convergence_threshold
  @convergence_threshold
end

#max_iterationsFixnum

When iterative calculation is enabled, the maximum number of calculation rounds to perform. Corresponds to the JSON property maxIterations

Returns:

  • (Fixnum)


6139
6140
6141
# File 'generated/google/apis/sheets_v4/classes.rb', line 6139

def max_iterations
  @max_iterations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6146
6147
6148
6149
# File 'generated/google/apis/sheets_v4/classes.rb', line 6146

def update!(**args)
  @convergence_threshold = args[:convergence_threshold] if args.key?(:convergence_threshold)
  @max_iterations = args[:max_iterations] if args.key?(:max_iterations)
end