class AsposeSlidesCloud::BorderBoxElement

Rectangular or some other border around the MathElement.

Attributes

base[RW]

Base

hide_bottom[RW]

Hide Bottom Edge

hide_left[RW]

Hide Left Edge

hide_right[RW]

Hide Right Edge

hide_top[RW]

Hide Top Edge

strikethrough_bottom_left_to_top_right[RW]

Strikethrough Bottom-Left to Top-Right

strikethrough_horizontal[RW]

Strikethrough Horizontal

strikethrough_top_left_to_bottom_right[RW]

Strikethrough Top-Left to Bottom-Right.

strikethrough_vertical[RW]

Strikethrough Vertical

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/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
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/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
swagger_types() click to toggle source

Attribute type mapping.

Calls superclass method
# 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

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/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
eql?(o) click to toggle source

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

# File lib/aspose_slides_cloud/models/border_box_element.rb, line 161
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/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
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/border_box_element.rb, line 130
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/border_box_element.rb, line 137
def valid?
  return false if !super
  true
end