class AsposeSlidesCloud::DelimiterElement

Delimiter element

Attributes

arguments[RW]

Arguments

beginning_character[RW]

Beginning character

delimiter_shape[RW]

Delimiter shape

ending_character[RW]

Ending character

grow_to_match_operand_height[RW]

Grow to match operand height

separator_character[RW]

Separator character

Public Class Methods

attribute_map() click to toggle source

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

Calls superclass method
# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 47
def self.attribute_map
  super.merge({
    :'arguments' => :'Arguments',
    :'beginning_character' => :'BeginningCharacter',
    :'separator_character' => :'SeparatorCharacter',
    :'ending_character' => :'EndingCharacter',
    :'grow_to_match_operand_height' => :'GrowToMatchOperandHeight',
    :'delimiter_shape' => :'DelimiterShape',
  })
end
new(attributes = {}) click to toggle source

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

Calls superclass method
# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 72
def initialize(attributes = {})
  super

  if attributes.has_key?(:'Arguments')
    if (value = attributes[:'Arguments']).is_a?(Array)
      self.arguments = value
    end
  end

  if attributes.has_key?(:'BeginningCharacter')
    self.beginning_character = attributes[:'BeginningCharacter']
  end

  if attributes.has_key?(:'SeparatorCharacter')
    self.separator_character = attributes[:'SeparatorCharacter']
  end

  if attributes.has_key?(:'EndingCharacter')
    self.ending_character = attributes[:'EndingCharacter']
  end

  if attributes.has_key?(:'GrowToMatchOperandHeight')
    self.grow_to_match_operand_height = attributes[:'GrowToMatchOperandHeight']
  end

  if attributes.has_key?(:'DelimiterShape')
    self.delimiter_shape = attributes[:'DelimiterShape']
  end
  self.type = 'Delimiter'
end
swagger_types() click to toggle source

Attribute type mapping.

Calls superclass method
# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 59
def self.swagger_types
  super.merge({
    :'arguments' => :'Array<MathElement>',
    :'beginning_character' => :'String',
    :'separator_character' => :'String',
    :'ending_character' => :'String',
    :'grow_to_match_operand_height' => :'BOOLEAN',
    :'delimiter_shape' => :'String',
  })
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/delimiter_element.rb, line 131
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      type == o.type &&
      arguments == o.arguments &&
      beginning_character == o.beginning_character &&
      separator_character == o.separator_character &&
      ending_character == o.ending_character &&
      grow_to_match_operand_height == o.grow_to_match_operand_height &&
      delimiter_shape == o.delimiter_shape
end
delimiter_shape=(delimiter_shape) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] delimiter_shape Object to be assigned

# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 121
def delimiter_shape=(delimiter_shape)
  validator = EnumAttributeValidator.new('String', ['Centered', 'Match'])
  unless validator.valid?(delimiter_shape)
    fail ArgumentError, 'invalid value for "delimiter_shape", must be one of #{validator.allowable_values}.'
  end
  @delimiter_shape = delimiter_shape
end
eql?(o) click to toggle source

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

# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 145
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/delimiter_element.rb, line 151
def hash
  [type, arguments, beginning_character, separator_character, ending_character, grow_to_match_operand_height, delimiter_shape].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

Calls superclass method
# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 105
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
# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 112
def valid?
  return false if !super
  delimiter_shape_validator = EnumAttributeValidator.new('String', ['Centered', 'Match'])
  return false unless delimiter_shape_validator.valid?(@delimiter_shape)
  true
end