class AsposeSlidesCloud::XYSeries

Common properties for Bubble and Scatter series.

Attributes

data_source_for_x_values[RW]

Data source type for X Values.

data_source_for_y_values[RW]

Data source type for Y Values.

number_format_of_x_values[RW]

The number format for the series x values.

number_format_of_y_values[RW]

The number format for the series y values.

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# 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
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Calls superclass method AsposeSlidesCloud::Series::new
# 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
swagger_types() click to toggle source

Attribute type mapping.

# 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

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# 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) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/xy_series.rb, line 124
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# 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_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/aspose_slides_cloud/models/xy_series.rb, line 84
def list_invalid_properties
  invalid_properties = super
  invalid_properties
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

Calls superclass method AsposeSlidesCloud::Series#valid?
# File lib/aspose_slides_cloud/models/xy_series.rb, line 91
def valid?
  return false if !super
  true
end