class AsposeSlidesCloud::DelimiterElement
Delimiter element
Attributes
Arguments
Beginning character
Delimiter shape
Ending character
Grow to match operand height
Separator character
Public Class Methods
Source
# 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
Attribute mapping from ruby-style variable name to JSON key.
Source
# 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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Source
# 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
Attribute type mapping.
Public Instance Methods
Source
# 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
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# 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
Custom attribute writer method checking allowed values (enum). @param [Object] delimiter_shape
Object to be assigned
Source
# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 145 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# 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
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/delimiter_element.rb, line 105 def list_invalid_properties invalid_properties = super invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Source
# 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
Check to see if the all the properties in the model are valid @return true if the model is valid