class AsposeSlidesCloud::OneValueChartDataPoint
One value chart data point.
Attributes
True if the data point shall invert its colors if the value is negative. Applies to bar, column and bubble series.
SetAsTotal. Applied to Waterfall data points only.
Value.
Spreadsheet formula in A1-style.
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 41 def self.attribute_map super.merge({ :'value' => :'Value', :'value_formula' => :'ValueFormula', :'set_as_total' => :'SetAsTotal', :'invert_if_negative' => :'InvertIfNegative', }) end
Attribute mapping from ruby-style variable name to JSON key.
AsposeSlidesCloud::DataPoint::attribute_map
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 62 def initialize(attributes = {}) super if attributes.has_key?(:'Value') self.value = attributes[:'Value'] end if attributes.has_key?(:'ValueFormula') self.value_formula = attributes[:'ValueFormula'] end if attributes.has_key?(:'SetAsTotal') self.set_as_total = attributes[:'SetAsTotal'] end if attributes.has_key?(:'InvertIfNegative') self.invert_if_negative = attributes[:'InvertIfNegative'] end self.type = 'OneValue' end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
AsposeSlidesCloud::DataPoint::new
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 51 def self.swagger_types super.merge({ :'value' => :'Float', :'value_formula' => :'String', :'set_as_total' => :'BOOLEAN', :'invert_if_negative' => :'BOOLEAN', }) end
Attribute type mapping.
AsposeSlidesCloud::DataPoint::swagger_types
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 99 def ==(o) return true if self.equal?(o) self.class == o.class && fill_format == o.fill_format && effect_format == o.effect_format && three_d_format == o.three_d_format && line_format == o.line_format && marker == o.marker && type == o.type && value == o.value && value_formula == o.value_formula && set_as_total == o.set_as_total && invert_if_negative == o.invert_if_negative end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 116 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 122 def hash [fill_format, effect_format, three_d_format, line_format, marker, type, value, value_formula, set_as_total, invert_if_negative].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 85 def list_invalid_properties invalid_properties = super invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
AsposeSlidesCloud::DataPoint#list_invalid_properties
Source
# File lib/aspose_slides_cloud/models/one_value_chart_data_point.rb, line 92 def valid? return false if !super true end
Check to see if the all the properties in the model are valid @return true if the model is valid
AsposeSlidesCloud::DataPoint#valid?