module AsposeCellsCloud # class Top10 < BaseObject attr_accessor :is_bottom, :is_percent, :rank # attribute mapping from ruby-style variable name to JSON key def self.attribute_map { # Get or set the flag indicating whether a 'top/bottom' rule is a 'bottom' rule. '1' indicates 'bottom'. Default value is false. :'is_bottom' => :'IsBottom', # Get or set the flag indicating whether a 'top/bottom' rule is a 'top/bottom percent' rule. Default value is false. :'is_percent' => :'IsPercent', # Get or set the value of 'n' in a 'top/bottom n' conditional formatting rule. If IsPercent is true, the value must between 0 and 100. Otherwise it must between 0 and 1000. Default value is 10. :'rank' => :'Rank' } end # attribute type def self.swagger_types { :'is_bottom' => :'BOOLEAN', :'is_percent' => :'BOOLEAN', :'rank' => :'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[:'IsBottom'] self.is_bottom = attributes[:'IsBottom'] end if attributes[:'IsPercent'] self.is_percent = attributes[:'IsPercent'] end if attributes[:'Rank'] self.rank = attributes[:'Rank'] end end end end