Class: AsposeSlidesCloud::BoxElement
- Inherits:
-
MathElement
- Object
- BaseObject
- MathElement
- AsposeSlidesCloud::BoxElement
- Defined in:
- lib/aspose_slides_cloud/models/box_element.rb
Overview
Box element.
Instance Attribute Summary collapse
-
#alignment_point ⇒ Object
Alignment point.
-
#base ⇒ Object
Base.
-
#differential ⇒ Object
Differential.
-
#explicit_break ⇒ Object
Explicit break.
-
#no_break ⇒ Object
No break.
-
#operator_emulator ⇒ Object
Operator emulator.
Attributes inherited from MathElement
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ BoxElement
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ BoxElement
Initializes the object
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_point ⇒ Object
Alignment point
41 42 43 |
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 41 def alignment_point @alignment_point end |
#base ⇒ Object
Base
29 30 31 |
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 29 def base @base end |
#differential ⇒ Object
Differential
38 39 40 |
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 38 def differential @differential end |
#explicit_break ⇒ Object
Explicit break
44 45 46 |
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 44 def explicit_break @explicit_break end |
#no_break ⇒ Object
No break
35 36 37 |
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 35 def no_break @no_break end |
#operator_emulator ⇒ Object
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_map ⇒ Object
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_types ⇒ Object
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.
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
131 132 133 |
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 131 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
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_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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
110 111 112 113 |
# File 'lib/aspose_slides_cloud/models/box_element.rb', line 110 def valid? return false if !super true end |