Sha256: a704163c194c24498f634c8f1b79e563a247a1d49155fe88536bf75064cc8a12

Contents?: true

Size: 1.85 KB

Versions: 1

Compression:

Stored size: 1.85 KB

Contents

module AsposeCellsCloud
  # 
  class AboveAverage < BaseObject
    attr_accessor :is_above_average, :is_equal_average, :std_dev
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # Get or set the flag indicating whether the rule is an &#39;above average&#39; rule. &#39;true&#39; indicates &#39;above average&#39;. Default value is true.
        :'is_above_average' => :'IsAboveAverage',
        
        # Get or set the flag indicating whether the &#39;aboveAverage&#39; and &#39;belowAverage&#39; criteria is inclusive of the average itself, or exclusive of that value. &#39;true&#39; indicates to include the average value in the criteria. Default value is false.
        :'is_equal_average' => :'IsEqualAverage',
        
        # Get or set the number of standard deviations to include above or below the average in the conditional formatting rule. The input value must between 0 and 3 (include 0 and 3). Setting this value to 0 means stdDev is not set. The default value is 0.
        :'std_dev' => :'StdDev'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'is_above_average' => :'BOOLEAN',
        :'is_equal_average' => :'BOOLEAN',
        :'std_dev' => :'Integer'
        
      }
    end

    def initialize(attributes = {})
      return if !attributes.is_a?(Hash) || attributes.empty?

      # convert string to symbol for hash key
      attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

      
      if attributes[:'IsAboveAverage']
        self.is_above_average = attributes[:'IsAboveAverage']
      end
      
      if attributes[:'IsEqualAverage']
        self.is_equal_average = attributes[:'IsEqualAverage']
      end
      
      if attributes[:'StdDev']
        self.std_dev = attributes[:'StdDev']
      end
      
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aspose_cells_cloud-1.0.10 lib/aspose_cells_cloud/models/above_average.rb