class AsposeSlidesCloud::BorderBoxElement
Rectangular or some other border around the MathElement
.
Attributes
Base
Hide Bottom Edge
Hide Left Edge
Hide Right Edge
Hide Top Edge
Strikethrough Bottom-Left to Top-Right
Strikethrough Horizontal
Strikethrough Top-Left to Bottom-Right.
Strikethrough Vertical
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/border_box_element.rb, line 56 def self.attribute_map super.merge({ :'base' => :'Base', :'hide_top' => :'HideTop', :'hide_bottom' => :'HideBottom', :'hide_left' => :'HideLeft', :'hide_right' => :'HideRight', :'strikethrough_horizontal' => :'StrikethroughHorizontal', :'strikethrough_vertical' => :'StrikethroughVertical', :'strikethrough_bottom_left_to_top_right' => :'StrikethroughBottomLeftToTopRight', :'strikethrough_top_left_to_bottom_right' => :'StrikethroughTopLeftToBottomRight', }) end
Attribute mapping from ruby-style variable name to JSON key.
Source
# File lib/aspose_slides_cloud/models/border_box_element.rb, line 87 def initialize(attributes = {}) super if attributes.has_key?(:'Base') self.base = attributes[:'Base'] end if attributes.has_key?(:'HideTop') self.hide_top = attributes[:'HideTop'] end if attributes.has_key?(:'HideBottom') self.hide_bottom = attributes[:'HideBottom'] end if attributes.has_key?(:'HideLeft') self.hide_left = attributes[:'HideLeft'] end if attributes.has_key?(:'HideRight') self.hide_right = attributes[:'HideRight'] end if attributes.has_key?(:'StrikethroughHorizontal') self.strikethrough_horizontal = attributes[:'StrikethroughHorizontal'] end if attributes.has_key?(:'StrikethroughVertical') self.strikethrough_vertical = attributes[:'StrikethroughVertical'] end if attributes.has_key?(:'StrikethroughBottomLeftToTopRight') self.strikethrough_bottom_left_to_top_right = attributes[:'StrikethroughBottomLeftToTopRight'] end if attributes.has_key?(:'StrikethroughTopLeftToBottomRight') self.strikethrough_top_left_to_bottom_right = attributes[:'StrikethroughTopLeftToBottomRight'] end self.type = 'BorderBox' end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Source
# File lib/aspose_slides_cloud/models/border_box_element.rb, line 71 def self.swagger_types super.merge({ :'base' => :'MathElement', :'hide_top' => :'BOOLEAN', :'hide_bottom' => :'BOOLEAN', :'hide_left' => :'BOOLEAN', :'hide_right' => :'BOOLEAN', :'strikethrough_horizontal' => :'BOOLEAN', :'strikethrough_vertical' => :'BOOLEAN', :'strikethrough_bottom_left_to_top_right' => :'BOOLEAN', :'strikethrough_top_left_to_bottom_right' => :'BOOLEAN', }) end
Attribute type mapping.
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/border_box_element.rb, line 144 def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && base == o.base && hide_top == o.hide_top && hide_bottom == o.hide_bottom && hide_left == o.hide_left && hide_right == o.hide_right && strikethrough_horizontal == o.strikethrough_horizontal && strikethrough_vertical == o.strikethrough_vertical && strikethrough_bottom_left_to_top_right == o.strikethrough_bottom_left_to_top_right && strikethrough_top_left_to_bottom_right == o.strikethrough_top_left_to_bottom_right end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/border_box_element.rb, line 161 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/border_box_element.rb, line 167 def hash [type, base, hide_top, hide_bottom, hide_left, hide_right, strikethrough_horizontal, strikethrough_vertical, strikethrough_bottom_left_to_top_right, strikethrough_top_left_to_bottom_right].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/border_box_element.rb, line 130 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/border_box_element.rb, line 137 def valid? return false if !super true end
Check to see if the all the properties in the model are valid @return true if the model is valid