Sha256: 91548c92459bb89e1b634d888e7400506a3fc81b1addff2d9b886150cb2a2d0b
Contents?: true
Size: 1.44 KB
Versions: 10
Compression:
Stored size: 1.44 KB
Contents
module AsposeCellsCloud # class DrawingGradientFill < BaseObject attr_accessor :fill_type, :direction_type, :angle, :gradient_stops # attribute mapping from ruby-style variable name to JSON key def self.attribute_map { # :'fill_type' => :'FillType', # :'direction_type' => :'DirectionType', # :'angle' => :'Angle', # :'gradient_stops' => :'GradientStops' } end # attribute type def self.swagger_types { :'fill_type' => :'String', :'direction_type' => :'String', :'angle' => :'Float', :'gradient_stops' => :'Array<DrawingGradientFillStop>' } 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[:'FillType'] self.fill_type = attributes[:'FillType'] end if attributes[:'DirectionType'] self.direction_type = attributes[:'DirectionType'] end if attributes[:'Angle'] self.angle = attributes[:'Angle'] end if attributes[:'GradientStops'] if (value = attributes[:'GradientStops']).is_a?(Array) self.gradient_stops = value end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems