Class: AsposeSlidesCloud::BoxElement

Inherits:
MathElement show all
Defined in:
lib/aspose_slides_cloud/models/box_element.rb

Overview

Box element.

Instance Attribute Summary collapse

Attributes inherited from MathElement

#type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ BoxElement

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 72

def initialize(attributes = {})
  super

  if attributes.has_key?(:'Base')
    self.base = attributes[:'Base']
  end

  if attributes.has_key?(:'OperatorEmulator')
    self.operator_emulator = attributes[:'OperatorEmulator']
  end

  if attributes.has_key?(:'NoBreak')
    self.no_break = attributes[:'NoBreak']
  end

  if attributes.has_key?(:'Differential')
    self.differential = attributes[:'Differential']
  end

  if attributes.has_key?(:'AlignmentPoint')
    self.alignment_point = attributes[:'AlignmentPoint']
  end

  if attributes.has_key?(:'ExplicitBreak')
    self.explicit_break = attributes[:'ExplicitBreak']
  end
  self.type = 'Box'
end

Instance Attribute Details

#alignment_pointObject

Alignment point



41
42
43
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 41

def alignment_point
  @alignment_point
end

#baseObject

Base



29
30
31
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 29

def base
  @base
end

#differentialObject

Differential



38
39
40
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 38

def differential
  @differential
end

#explicit_breakObject

Explicit break



44
45
46
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 44

def explicit_break
  @explicit_break
end

#no_breakObject

No break



35
36
37
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 35

def no_break
  @no_break
end

#operator_emulatorObject

Operator emulator



32
33
34
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 32

def operator_emulator
  @operator_emulator
end

Class Method Details

.attribute_mapObject

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



47
48
49
50
51
52
53
54
55
56
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 47

def self.attribute_map
  super.merge({
    :'base' => :'Base',
    :'operator_emulator' => :'OperatorEmulator',
    :'no_break' => :'NoBreak',
    :'differential' => :'Differential',
    :'alignment_point' => :'AlignmentPoint',
    :'explicit_break' => :'ExplicitBreak',
  })
end

.swagger_typesObject

Attribute type mapping.



59
60
61
62
63
64
65
66
67
68
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 59

def self.swagger_types
  super.merge({
    :'base' => :'MathElement',
    :'operator_emulator' => :'BOOLEAN',
    :'no_break' => :'BOOLEAN',
    :'differential' => :'BOOLEAN',
    :'alignment_point' => :'BOOLEAN',
    :'explicit_break' => :'Integer',
  })
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



117
118
119
120
121
122
123
124
125
126
127
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 117

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      type == o.type &&
      base == o.base &&
      operator_emulator == o.operator_emulator &&
      no_break == o.no_break &&
      differential == o.differential &&
      alignment_point == o.alignment_point &&
      explicit_break == o.explicit_break
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


131
132
133
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 131

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



137
138
139
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 137

def hash
  [type, base, operator_emulator, no_break, differential, alignment_point, explicit_break].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



103
104
105
106
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 103

def list_invalid_properties
  invalid_properties = super
  invalid_properties
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



110
111
112
113
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 110

def valid?
  return false if !super
  true
end