Class: AsposeSlidesCloud::ScatterChartDataPoint

Inherits:
DataPoint show all
Defined in:
lib/aspose_slides_cloud/models/scatter_chart_data_point.rb

Overview

Scatter chart (two-dimensional) data point

Direct Known Subclasses

BubbleChartDataPoint

Instance Attribute Summary collapse

Attributes inherited from DataPoint

#effect_format, #fill_format, #line_format, #marker, #three_d_format, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ ScatterChartDataPoint

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



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_valueObject

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_formulaObject

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_valueObject

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_formulaObject

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_mapObject

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_typesObject

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.

Parameters:

  • Object (Object)

    to be compared



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

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


116
117
118
# File 'lib/aspose_slides_cloud/models/scatter_chart_data_point.rb', line 116

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



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_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



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

Returns:

  • (Boolean)

    true if the model is 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