Class: AsposeSlidesCloud::LineFormat
- Inherits:
-
BaseObject
- Object
- BaseObject
- AsposeSlidesCloud::LineFormat
- Defined in:
- lib/aspose_slides_cloud/models/line_format.rb
Overview
Line format.
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Alignment.
-
#begin_arrow_head ⇒ Object
Begin arrowhead.
-
#cap_style ⇒ Object
Cap style.
-
#custom_dash_pattern ⇒ Object
Custom dash pattern.
-
#dash_style ⇒ Object
Dash style.
-
#end_arrow_head ⇒ Object
End arrowhead.
-
#fill_format ⇒ Object
Fill format.
-
#join_style ⇒ Object
Join style.
-
#miter_limit ⇒ Object
Miter limit.
-
#sketch_type ⇒ Object
Sketch type.
-
#style ⇒ Object
Style.
-
#width ⇒ Object
Width.
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 = {}) ⇒ LineFormat
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 = {}) ⇒ LineFormat
Initializes the object
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 102 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'Alignment') self.alignment = attributes[:'Alignment'] end if attributes.has_key?(:'CapStyle') self.cap_style = attributes[:'CapStyle'] end if attributes.has_key?(:'DashStyle') self.dash_style = attributes[:'DashStyle'] end if attributes.has_key?(:'JoinStyle') self.join_style = attributes[:'JoinStyle'] end if attributes.has_key?(:'Style') self.style = attributes[:'Style'] end if attributes.has_key?(:'SketchType') self.sketch_type = attributes[:'SketchType'] end if attributes.has_key?(:'BeginArrowHead') self.begin_arrow_head = attributes[:'BeginArrowHead'] end if attributes.has_key?(:'EndArrowHead') self.end_arrow_head = attributes[:'EndArrowHead'] end if attributes.has_key?(:'CustomDashPattern') self.custom_dash_pattern = attributes[:'CustomDashPattern'] end if attributes.has_key?(:'FillFormat') self.fill_format = attributes[:'FillFormat'] end if attributes.has_key?(:'MiterLimit') self.miter_limit = attributes[:'MiterLimit'] end if attributes.has_key?(:'Width') self.width = attributes[:'Width'] end end |
Instance Attribute Details
#alignment ⇒ Object
Alignment.
29 30 31 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 29 def alignment @alignment end |
#begin_arrow_head ⇒ Object
Begin arrowhead.
47 48 49 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 47 def begin_arrow_head @begin_arrow_head end |
#cap_style ⇒ Object
Cap style.
32 33 34 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 32 def cap_style @cap_style end |
#custom_dash_pattern ⇒ Object
Custom dash pattern.
53 54 55 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 53 def custom_dash_pattern @custom_dash_pattern end |
#dash_style ⇒ Object
Dash style.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 35 def dash_style @dash_style end |
#end_arrow_head ⇒ Object
End arrowhead.
50 51 52 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 50 def end_arrow_head @end_arrow_head end |
#fill_format ⇒ Object
Fill format.
56 57 58 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 56 def fill_format @fill_format end |
#join_style ⇒ Object
Join style.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 38 def join_style @join_style end |
#miter_limit ⇒ Object
Miter limit.
59 60 61 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 59 def miter_limit @miter_limit end |
#sketch_type ⇒ Object
Sketch type.
44 45 46 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 44 def sketch_type @sketch_type end |
#style ⇒ Object
Style.
41 42 43 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 41 def style @style end |
#width ⇒ Object
Width.
62 63 64 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 62 def width @width end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 65 def self.attribute_map { :'alignment' => :'Alignment', :'cap_style' => :'CapStyle', :'dash_style' => :'DashStyle', :'join_style' => :'JoinStyle', :'style' => :'Style', :'sketch_type' => :'SketchType', :'begin_arrow_head' => :'BeginArrowHead', :'end_arrow_head' => :'EndArrowHead', :'custom_dash_pattern' => :'CustomDashPattern', :'fill_format' => :'FillFormat', :'miter_limit' => :'MiterLimit', :'width' => :'Width', } end |
.swagger_types ⇒ Object
Attribute type mapping.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 83 def self.swagger_types { :'alignment' => :'String', :'cap_style' => :'String', :'dash_style' => :'String', :'join_style' => :'String', :'style' => :'String', :'sketch_type' => :'String', :'begin_arrow_head' => :'ArrowHeadProperties', :'end_arrow_head' => :'ArrowHeadProperties', :'custom_dash_pattern' => :'CustomDashPattern', :'fill_format' => :'FillFormat', :'miter_limit' => :'Float', :'width' => :'Float', } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 244 def ==(o) return true if self.equal?(o) self.class == o.class && alignment == o.alignment && cap_style == o.cap_style && dash_style == o.dash_style && join_style == o.join_style && style == o.style && sketch_type == o.sketch_type && begin_arrow_head == o.begin_arrow_head && end_arrow_head == o.end_arrow_head && custom_dash_pattern == o.custom_dash_pattern && fill_format == o.fill_format && miter_limit == o.miter_limit && width == o.width end |
#eql?(o) ⇒ Boolean
263 264 265 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 263 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
269 270 271 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 269 def hash [alignment, cap_style, dash_style, join_style, style, sketch_type, begin_arrow_head, end_arrow_head, custom_dash_pattern, fill_format, miter_limit, width].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
159 160 161 162 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 159 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/aspose_slides_cloud/models/line_format.rb', line 166 def valid? alignment_validator = EnumAttributeValidator.new('String', ['Center', 'Inset', 'NotDefined']) return false unless alignment_validator.valid?(@alignment) cap_style_validator = EnumAttributeValidator.new('String', ['Round', 'Square', 'Flat', 'NotDefined']) return false unless cap_style_validator.valid?(@cap_style) dash_style_validator = EnumAttributeValidator.new('String', ['Solid', 'Dot', 'Dash', 'LargeDash', 'DashDot', 'LargeDashDot', 'LargeDashDotDot', 'SystemDash', 'SystemDot', 'SystemDashDot', 'SystemDashDotDot', 'Custom', 'NotDefined']) return false unless dash_style_validator.valid?(@dash_style) join_style_validator = EnumAttributeValidator.new('String', ['Round', 'Bevel', 'Miter', 'NotDefined']) return false unless join_style_validator.valid?(@join_style) style_validator = EnumAttributeValidator.new('String', ['Single', 'ThinThin', 'ThinThick', 'ThickThin', 'ThickBetweenThin', 'NotDefined']) return false unless style_validator.valid?(@style) sketch_type_validator = EnumAttributeValidator.new('String', ['None', 'Curved', 'Freehand', 'Scribble', 'NotDefined']) return false unless sketch_type_validator.valid?(@sketch_type) true end |