Class: AsposeSlidesCloud::SmartArt
- Inherits:
-
ShapeBase
- Object
- BaseObject
- ResourceBase
- ShapeBase
- AsposeSlidesCloud::SmartArt
- Defined in:
- lib/aspose_slides_cloud/models/smart_art.rb
Overview
Represents SmartArt shape resource.
Instance Attribute Summary collapse
-
#color_style ⇒ Object
Color style.
-
#is_reversed ⇒ Object
The state of the SmartArt diagram with regard to (left-to-right) LTR or (right-to-left) RTL, if the diagram supports reversal.
-
#layout ⇒ Object
Layout type.
-
#nodes ⇒ Object
Collection of nodes in SmartArt object.
-
#quick_style ⇒ Object
Quick style.
Attributes inherited from ShapeBase
#alternative_text, #alternative_text_title, #effect_format, #fill_format, #height, #hidden, #hyperlink_click, #hyperlink_mouse_over, #is_decorative, #line_format, #name, #three_d_format, #type, #width, #x, #y, #z_order_position
Attributes inherited from ResourceBase
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 = {}) ⇒ SmartArt
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 = {}) ⇒ SmartArt
Initializes the object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 67 def initialize(attributes = {}) super if attributes.has_key?(:'Layout') self.layout = attributes[:'Layout'] end if attributes.has_key?(:'QuickStyle') self.quick_style = attributes[:'QuickStyle'] end if attributes.has_key?(:'ColorStyle') self.color_style = attributes[:'ColorStyle'] end if attributes.has_key?(:'Nodes') if (value = attributes[:'Nodes']).is_a?(Array) self.nodes = value end end if attributes.has_key?(:'IsReversed') self.is_reversed = attributes[:'IsReversed'] end self.type = 'SmartArt' end |
Instance Attribute Details
#color_style ⇒ Object
Color style.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 35 def color_style @color_style end |
#is_reversed ⇒ Object
The state of the SmartArt diagram with regard to (left-to-right) LTR or (right-to-left) RTL, if the diagram supports reversal.
41 42 43 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 41 def is_reversed @is_reversed end |
#layout ⇒ Object
Layout type.
29 30 31 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 29 def layout @layout end |
#nodes ⇒ Object
Collection of nodes in SmartArt object.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 38 def nodes @nodes end |
#quick_style ⇒ Object
Quick style.
32 33 34 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 32 def quick_style @quick_style end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
44 45 46 47 48 49 50 51 52 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 44 def self.attribute_map super.merge({ :'layout' => :'Layout', :'quick_style' => :'QuickStyle', :'color_style' => :'ColorStyle', :'nodes' => :'Nodes', :'is_reversed' => :'IsReversed', }) end |
.swagger_types ⇒ Object
Attribute type mapping.
55 56 57 58 59 60 61 62 63 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 55 def self.swagger_types super.merge({ :'layout' => :'String', :'quick_style' => :'String', :'color_style' => :'String', :'nodes' => :'Array<SmartArtNode>', :'is_reversed' => :'BOOLEAN', }) end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 161 def ==(o) return true if self.equal?(o) self.class == o.class && self_uri == o.self_uri && alternate_links == o.alternate_links && name == o.name && width == o.width && height == o.height && alternative_text == o.alternative_text && alternative_text_title == o.alternative_text_title && hidden == o.hidden && is_decorative == o.is_decorative && x == o.x && y == o.y && z_order_position == o.z_order_position && fill_format == o.fill_format && effect_format == o.effect_format && three_d_format == o.three_d_format && line_format == o.line_format && hyperlink_click == o.hyperlink_click && hyperlink_mouse_over == o.hyperlink_mouse_over && type == o.type && layout == o.layout && quick_style == o.quick_style && color_style == o.color_style && nodes == o.nodes && is_reversed == o.is_reversed end |
#eql?(o) ⇒ Boolean
192 193 194 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 192 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
198 199 200 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 198 def hash [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, layout, quick_style, color_style, nodes, is_reversed].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 96 def list_invalid_properties invalid_properties = super if @layout.nil? invalid_properties.push('invalid value for "layout", layout cannot be nil.') end if @quick_style.nil? invalid_properties.push('invalid value for "quick_style", quick_style cannot be nil.') end if @color_style.nil? invalid_properties.push('invalid value for "color_style", color_style cannot be nil.') end invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/aspose_slides_cloud/models/smart_art.rb', line 115 def valid? return false if !super return false if @layout.nil? layout_validator = EnumAttributeValidator.new('String', ['AccentProcess', 'AccentedPicture', 'AlternatingFlow', 'AlternatingHexagons', 'AlternatingPictureBlocks', 'AlternatingPictureCircles', 'ArrowRibbon', 'AscendingPictureAccentProcess', 'Balance', 'BasicBendingProcess', 'BasicBlockList', 'BasicChevronProcess', 'BasicCycle', 'BasicMatrix', 'BasicPie', 'BasicProcess', 'BasicPyramid', 'BasicRadial', 'BasicTarget', 'BasicTimeline', 'BasicVenn', 'BendingPictureAccentList', 'BendingPictureBlocks', 'BendingPictureCaption', 'BendingPictureCaptionList', 'BendingPictureSemiTransparentText', 'BlockCycle', 'BubblePictureList', 'CaptionedPictures', 'ChevronList', 'CircleAccentTimeline', 'CircleArrowProcess', 'CirclePictureHierarchy', 'CircleRelationship', 'CircularBendingProcess', 'CircularPictureCallout', 'ClosedChevronProcess', 'ContinuousArrowProcess', 'ContinuousBlockProcess', 'ContinuousCycle', 'ContinuousPictureList', 'ConvergingArrows', 'ConvergingRadial', 'CounterbalanceArrows', 'CycleMatrix', 'DescendingBlockList', 'DescendingProcess', 'DetailedProcess', 'DivergingArrows', 'DivergingRadial', 'Equation', 'FramedTextPicture', 'Funnel', 'Gear', 'GridMatrix', 'GroupedList', 'HalfCircleOrganizationChart', 'HexagonCluster', 'Hierarchy', 'HierarchyList', 'HorizontalBulletList', 'HorizontalHierarchy', 'HorizontalLabeledHierarchy', 'HorizontalMultiLevelHierarchy', 'HorizontalOrganizationChart', 'HorizontalPictureList', 'IncreasingArrowsProcess', 'IncreasingCircleProcess', 'InvertedPyramid', 'LabeledHierarchy', 'LinearVenn', 'LinedList', 'MultidirectionalCycle', 'NameandTitleOrganizationChart', 'NestedTarget', 'NondirectionalCycle', 'OpposingArrows', 'OpposingIdeas', 'OrganizationChart', 'PhasedProcess', 'PictureAccentBlocks', 'PictureAccentList', 'PictureAccentProcess', 'PictureCaptionList', 'PictureGrid', 'PictureLineup', 'PictureStrips', 'PieProcess', 'PlusandMinus', 'ProcessArrows', 'ProcessList', 'PyramidList', 'RadialCluster', 'RadialCycle', 'RadialList', 'RadialVenn', 'RandomToResultProcess', 'RepeatingBendingProcess', 'ReverseList', 'SegmentedCycle', 'SegmentedProcess', 'SegmentedPyramid', 'SnapshotPictureList', 'SpiralPicture', 'SquareAccentList', 'StackedList', 'StackedVenn', 'StaggeredProcess', 'StepDownProcess', 'StepUpProcess', 'SubStepProcess', 'TableHierarchy', 'TableList', 'TargetList', 'TextCycle', 'TitlePictureLineup', 'TitledMatrix', 'TitledPictureAccentList', 'TitledPictureBlocks', 'TrapezoidList', 'UpwardArrow', 'VerticalAccentList', 'VerticalArrowList', 'VerticalBendingProcess', 'VerticalBlockList', 'VerticalBoxList', 'VerticalBulletList', 'VerticalChevronList', 'VerticalCircleList', 'VerticalCurvedList', 'VerticalEquation', 'VerticalPictureAccentList', 'VerticalPictureList', 'VerticalProcess', 'Custom', 'PictureOrganizationChart']) return false unless layout_validator.valid?(@layout) return false if @quick_style.nil? quick_style_validator = EnumAttributeValidator.new('String', ['SimpleFill', 'WhiteOutline', 'SubtleEffect', 'ModerateEffect', 'IntenceEffect', 'Polished', 'Inset', 'Cartoon', 'Powder', 'BrickScene', 'FlatScene', 'MetallicScene', 'SunsetScene', 'BirdsEyeScene']) return false unless quick_style_validator.valid?(@quick_style) return false if @color_style.nil? color_style_validator = EnumAttributeValidator.new('String', ['Dark1Outline', 'Dark2Outline', 'DarkFill', 'ColorfulAccentColors', 'ColorfulAccentColors2to3', 'ColorfulAccentColors3to4', 'ColorfulAccentColors4to5', 'ColorfulAccentColors5to6', 'ColoredOutlineAccent1', 'ColoredFillAccent1', 'GradientRangeAccent1', 'GradientLoopAccent1', 'TransparentGradientRangeAccent1', 'ColoredOutlineAccent2', 'ColoredFillAccent2', 'GradientRangeAccent2', 'GradientLoopAccent2', 'TransparentGradientRangeAccent2', 'ColoredOutlineAccent3', 'ColoredFillAccent3', 'GradientRangeAccent3', 'GradientLoopAccent3', 'TransparentGradientRangeAccent3', 'ColoredOutlineAccent4', 'ColoredFillAccent4', 'GradientRangeAccent4', 'GradientLoopAccent4', 'TransparentGradientRangeAccent4', 'ColoredOutlineAccent5', 'ColoredFillAccent5', 'GradientRangeAccent5', 'GradientLoopAccent5', 'TransparentGradientRangeAccent5', 'ColoredOutlineAccent6', 'ColoredFillAccent6', 'GradientRangeAccent6', 'GradientLoopAccent6', 'TransparentGradientRangeAccent6']) return false unless color_style_validator.valid?(@color_style) true end |