Class: AsposeSlidesCloud::XYSeries

Inherits:
Series show all
Defined in:
lib/aspose_slides_cloud/models/xy_series.rb

Overview

Common properties for Bubble and Scatter series.

Direct Known Subclasses

BubbleSeries, ScatterSeries

Instance Attribute Summary collapse

Attributes inherited from Series

#data_point_type, #data_source_for_series_name, #effect_format, #explosion, #fill_format, #invert_if_negative, #inverted_solid_fill_color, #is_color_varied, #line_format, #marker, #name, #order, #plot_on_second_axis, #smooth, #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 = {}) ⇒ XYSeries

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
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 62

def initialize(attributes = {})
  super

  if attributes.has_key?(:'NumberFormatOfYValues')
    self.number_format_of_y_values = attributes[:'NumberFormatOfYValues']
  end

  if attributes.has_key?(:'NumberFormatOfXValues')
    self.number_format_of_x_values = attributes[:'NumberFormatOfXValues']
  end

  if attributes.has_key?(:'DataSourceForXValues')
    self.data_source_for_x_values = attributes[:'DataSourceForXValues']
  end

  if attributes.has_key?(:'DataSourceForYValues')
    self.data_source_for_y_values = attributes[:'DataSourceForYValues']
  end
end

Instance Attribute Details

#data_source_for_x_valuesObject

Data source type for X Values.



35
36
37
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 35

def data_source_for_x_values
  @data_source_for_x_values
end

#data_source_for_y_valuesObject

Data source type for Y Values.



38
39
40
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 38

def data_source_for_y_values
  @data_source_for_y_values
end

#number_format_of_x_valuesObject

The number format for the series x values.



32
33
34
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 32

def number_format_of_x_values
  @number_format_of_x_values
end

#number_format_of_y_valuesObject

The number format for the series y values.



29
30
31
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 29

def number_format_of_y_values
  @number_format_of_y_values
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/xy_series.rb', line 41

def self.attribute_map
  super.merge({
    :'number_format_of_y_values' => :'NumberFormatOfYValues',
    :'number_format_of_x_values' => :'NumberFormatOfXValues',
    :'data_source_for_x_values' => :'DataSourceForXValues',
    :'data_source_for_y_values' => :'DataSourceForYValues',
  })
end

.swagger_typesObject

Attribute type mapping.



51
52
53
54
55
56
57
58
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 51

def self.swagger_types
  super.merge({
    :'number_format_of_y_values' => :'String',
    :'number_format_of_x_values' => :'String',
    :'data_source_for_x_values' => :'DataSource',
    :'data_source_for_y_values' => :'DataSource',
  })
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 98

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      type == o.type &&
      name == o.name &&
      data_source_for_series_name == o.data_source_for_series_name &&
      is_color_varied == o.is_color_varied &&
      inverted_solid_fill_color == o.inverted_solid_fill_color &&
      smooth == o.smooth &&
      plot_on_second_axis == o.plot_on_second_axis &&
      order == o.order &&
      invert_if_negative == o.invert_if_negative &&
      explosion == o.explosion &&
      marker == o.marker &&
      fill_format == o.fill_format &&
      effect_format == o.effect_format &&
      line_format == o.line_format &&
      data_point_type == o.data_point_type &&
      number_format_of_y_values == o.number_format_of_y_values &&
      number_format_of_x_values == o.number_format_of_x_values &&
      data_source_for_x_values == o.data_source_for_x_values &&
      data_source_for_y_values == o.data_source_for_y_values
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


124
125
126
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 124

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



130
131
132
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 130

def hash
  [type, name, data_source_for_series_name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type, number_format_of_y_values, number_format_of_x_values, data_source_for_x_values, data_source_for_y_values].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



84
85
86
87
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 84

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



91
92
93
94
# File 'lib/aspose_slides_cloud/models/xy_series.rb', line 91

def valid?
  return false if !super
  true
end