Sha256: a9a2d938a74adb54cf86bbc7626102773bc55d4abbbb5e16332d81113a91fa8e

Contents?: true

Size: 1.7 KB

Versions: 1

Compression:

Stored size: 1.7 KB

Contents

module AsposeCellsCloud
  # 
  class NegativeBarFormat < BaseObject
    attr_accessor :border_color, :border_color_type, :color, :color_type
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # Gets or sets a FormatColor object that you can use to specify the border color for negative data bars.
        :'border_color' => :'BorderColor',
        
        # Gets whether to use the same border color as positive data bars.
        :'border_color_type' => :'BorderColorType',
        
        # Gets or sets a FormatColor object that you can use to specify the fill color for negative data bars.
        :'color' => :'Color',
        
        # Gets or sets whether to use the same fill color as positive data bars.
        :'color_type' => :'ColorType'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'border_color' => :'Color',
        :'border_color_type' => :'String',
        :'color' => :'Color',
        :'color_type' => :'String'
        
      }
    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[:'BorderColor']
        self.border_color = attributes[:'BorderColor']
      end
      
      if attributes[:'BorderColorType']
        self.border_color_type = attributes[:'BorderColorType']
      end
      
      if attributes[:'Color']
        self.color = attributes[:'Color']
      end
      
      if attributes[:'ColorType']
        self.color_type = attributes[:'ColorType']
      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/negative_bar_format.rb