Class: AsposeSlidesCloud::ScatterChartDataPoint
- Inherits:
-
DataPoint
- Object
- BaseObject
- DataPoint
- AsposeSlidesCloud::ScatterChartDataPoint
- Defined in:
- lib/aspose_slides_cloud/models/scatter_chart_data_point.rb
Overview
Scatter chart (two-dimensional) data point
Direct Known Subclasses
Instance Attribute Summary collapse
-
#x_value ⇒ Object
X-value.
-
#x_value_formula ⇒ Object
Spreadsheet formula in A1-style.
-
#y_value ⇒ Object
Y-value.
-
#y_value_formula ⇒ Object
Spreadsheet formula in A1-style.
Attributes inherited from DataPoint
#effect_format, #fill_format, #line_format, #marker, #three_d_format, #type
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ScatterChartDataPoint
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ ScatterChartDataPoint
Initializes the object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 62 def initialize(attributes = {}) super if attributes.has_key?(:'XValue') self.x_value = attributes[:'XValue'] end if attributes.has_key?(:'YValue') self.y_value = attributes[:'YValue'] end if attributes.has_key?(:'XValueFormula') self.x_value_formula = attributes[:'XValueFormula'] end if attributes.has_key?(:'YValueFormula') self.y_value_formula = attributes[:'YValueFormula'] end self.type = 'Scatter' end |
Instance Attribute Details
#x_value ⇒ Object
X-value
29 30 31 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 29 def x_value @x_value end |
#x_value_formula ⇒ Object
Spreadsheet formula in A1-style.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 35 def x_value_formula @x_value_formula end |
#y_value ⇒ Object
Y-value
32 33 34 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 32 def y_value @y_value end |
#y_value_formula ⇒ Object
Spreadsheet formula in A1-style.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 38 def y_value_formula @y_value_formula end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
41 42 43 44 45 46 47 48 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 41 def self.attribute_map super.merge({ :'x_value' => :'XValue', :'y_value' => :'YValue', :'x_value_formula' => :'XValueFormula', :'y_value_formula' => :'YValueFormula', }) end |
.swagger_types ⇒ Object
Attribute type mapping.
51 52 53 54 55 56 57 58 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 51 def self.swagger_types super.merge({ :'x_value' => :'Float', :'y_value' => :'Float', :'x_value_formula' => :'String', :'y_value_formula' => :'String', }) end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/aspose_slides_cloud/models/scatter_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 && x_value == o.x_value && y_value == o.y_value && x_value_formula == o.x_value_formula && y_value_formula == o.y_value_formula end |
#eql?(o) ⇒ Boolean
116 117 118 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 116 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
122 123 124 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 122 def hash [fill_format, effect_format, three_d_format, line_format, marker, type, x_value, y_value, x_value_formula, y_value_formula].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
85 86 87 88 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 85 def list_invalid_properties invalid_properties = super invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
92 93 94 95 |
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 92 def valid? return false if !super true end |