class AsposeSlidesCloud::ChartTitle
Represents chart title
Attributes
Get or sets the effect format.
Get or sets the fill format.
Height
Get or sets the line format.
true if other elements are allowed to overlay the legend
Get or sets the text.
Width
the X location
the Y location
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 56 def self.attribute_map { :'text' => :'Text', :'x' => :'X', :'y' => :'Y', :'width' => :'Width', :'height' => :'Height', :'overlay' => :'Overlay', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'line_format' => :'LineFormat', } end
Attribute mapping from ruby-style variable name to JSON key.
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 87 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'Text') self.text = attributes[:'Text'] end if attributes.has_key?(:'X') self.x = attributes[:'X'] end if attributes.has_key?(:'Y') self.y = attributes[:'Y'] end if attributes.has_key?(:'Width') self.width = attributes[:'Width'] end if attributes.has_key?(:'Height') self.height = attributes[:'Height'] end if attributes.has_key?(:'Overlay') self.overlay = attributes[:'Overlay'] end if attributes.has_key?(:'FillFormat') self.fill_format = attributes[:'FillFormat'] end if attributes.has_key?(:'EffectFormat') self.effect_format = attributes[:'EffectFormat'] end if attributes.has_key?(:'LineFormat') self.line_format = attributes[:'LineFormat'] end end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 71 def self.swagger_types { :'text' => :'String', :'x' => :'Float', :'y' => :'Float', :'width' => :'Float', :'height' => :'Float', :'overlay' => :'BOOLEAN', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'line_format' => :'LineFormat', } end
Attribute type mapping.
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 145 def ==(o) return true if self.equal?(o) self.class == o.class && text == o.text && x == o.x && y == o.y && width == o.width && height == o.height && overlay == o.overlay && fill_format == o.fill_format && effect_format == o.effect_format && line_format == o.line_format end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 161 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 167 def hash [text, x, y, width, height, overlay, fill_format, effect_format, line_format].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 132 def list_invalid_properties invalid_properties = Array.new invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Source
# File lib/aspose_slides_cloud/models/chart_title.rb, line 139 def valid? true end
Check to see if the all the properties in the model are valid @return true if the model is valid