module AsposeCellsCloud # class ColorScale < BaseObject attr_accessor :max_cfvo, :max_color, :mid_cfvo, :mid_color, :min_cfvo, :min_color # attribute mapping from ruby-style variable name to JSON key def self.attribute_map { # Get or set this ColorScale's max value object. Cannot set null or CFValueObject with type FormatConditionValueType.Min to it. :'max_cfvo' => :'MaxCfvo', # Get or set the max value object's corresponding color. :'max_color' => :'MaxColor', # Get or set this ColorScale's mid value object. Cannot set CFValueObject with type FormatConditionValueType.Max or FormatConditionValueType.Min to it. :'mid_cfvo' => :'MidCfvo', # Get or set the mid value object's corresponding color. :'mid_color' => :'MidColor', # Get or set this ColorScale's min value object. Cannot set null or CFValueObject with type FormatConditionValueType.Max to it. :'min_cfvo' => :'MinCfvo', # Get or set the min value object's corresponding color. :'min_color' => :'MinColor' } end # attribute type def self.swagger_types { :'max_cfvo' => :'ConditionalFormattingValue', :'max_color' => :'Color', :'mid_cfvo' => :'ConditionalFormattingValue', :'mid_color' => :'Color', :'min_cfvo' => :'ConditionalFormattingValue', :'min_color' => :'Color' } 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[:'MaxCfvo'] self.max_cfvo = attributes[:'MaxCfvo'] end if attributes[:'MaxColor'] self.max_color = attributes[:'MaxColor'] end if attributes[:'MidCfvo'] self.mid_cfvo = attributes[:'MidCfvo'] end if attributes[:'MidColor'] self.mid_color = attributes[:'MidColor'] end if attributes[:'MinCfvo'] self.min_cfvo = attributes[:'MinCfvo'] end if attributes[:'MinColor'] self.min_color = attributes[:'MinColor'] end end end end