Class: CloudmersiveConvertApiClient::DocxTable
- Inherits:
-
Object
- Object
- CloudmersiveConvertApiClient::DocxTable
- Defined in:
- lib/cloudmersive-convert-api-client/models/docx_table.rb
Overview
A table in a Word Document (DOCX) file
Instance Attribute Summary collapse
-
#bottom_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#bottom_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#bottom_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#bottom_border_type ⇒ Object
Type for the bottom border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#cell_horizontal_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#cell_horizontal_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#cell_horizontal_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#cell_horizontal_border_type ⇒ Object
Type for the cell horizontal border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#cell_vertical_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#cell_vertical_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#cell_vertical_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#cell_vertical_border_type ⇒ Object
Type for the cell vertical border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#end_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#end_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#end_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#end_border_type ⇒ Object
Type for the end border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#left_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#left_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#left_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#left_border_type ⇒ Object
Type for the left border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#path ⇒ Object
The Path of the location of this object; leave blank for new tables.
-
#right_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#right_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#right_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#right_border_type ⇒ Object
Type for the right border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#start_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#start_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#start_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#start_border_type ⇒ Object
Type for the start border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#table_id ⇒ Object
The ID of the table; leave blank for new tables.
-
#table_indentation_mode ⇒ Object
Table indentation type.
-
#table_indentation_width ⇒ Object
Table indentation width.
-
#table_rows ⇒ Object
Rows in the table; this is where the contents is located.
-
#top_border_color ⇒ Object
HTML-style color hex value (do not include a #).
-
#top_border_size ⇒ Object
Width of the border in points (1/72nd of an inch).
-
#top_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch).
-
#top_border_type ⇒ Object
Type for the top border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave.
-
#width ⇒ Object
The Width of the table, or 0 if not specified.
-
#width_type ⇒ Object
The Width configuration type of the table.
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.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DocxTable
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ DocxTable
Initializes the object
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 228 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?(:'TableID') self.table_id = attributes[:'TableID'] end if attributes.has_key?(:'Path') self.path = attributes[:'Path'] end if attributes.has_key?(:'Width') self.width = attributes[:'Width'] end if attributes.has_key?(:'WidthType') self.width_type = attributes[:'WidthType'] end if attributes.has_key?(:'TableRows') if (value = attributes[:'TableRows']).is_a?(Array) self.table_rows = value end end if attributes.has_key?(:'TopBorderType') self.top_border_type = attributes[:'TopBorderType'] end if attributes.has_key?(:'TopBorderSize') self.top_border_size = attributes[:'TopBorderSize'] end if attributes.has_key?(:'TopBorderSpace') self.top_border_space = attributes[:'TopBorderSpace'] end if attributes.has_key?(:'TopBorderColor') self.top_border_color = attributes[:'TopBorderColor'] end if attributes.has_key?(:'BottomBorderType') self.bottom_border_type = attributes[:'BottomBorderType'] end if attributes.has_key?(:'BottomBorderSize') self.bottom_border_size = attributes[:'BottomBorderSize'] end if attributes.has_key?(:'BottomBorderSpace') self.bottom_border_space = attributes[:'BottomBorderSpace'] end if attributes.has_key?(:'BottomBorderColor') self.bottom_border_color = attributes[:'BottomBorderColor'] end if attributes.has_key?(:'LeftBorderType') self.left_border_type = attributes[:'LeftBorderType'] end if attributes.has_key?(:'LeftBorderSize') self.left_border_size = attributes[:'LeftBorderSize'] end if attributes.has_key?(:'LeftBorderSpace') self.left_border_space = attributes[:'LeftBorderSpace'] end if attributes.has_key?(:'LeftBorderColor') self.left_border_color = attributes[:'LeftBorderColor'] end if attributes.has_key?(:'RightBorderType') self.right_border_type = attributes[:'RightBorderType'] end if attributes.has_key?(:'RightBorderSize') self.right_border_size = attributes[:'RightBorderSize'] end if attributes.has_key?(:'RightBorderSpace') self.right_border_space = attributes[:'RightBorderSpace'] end if attributes.has_key?(:'RightBorderColor') self.right_border_color = attributes[:'RightBorderColor'] end if attributes.has_key?(:'CellHorizontalBorderType') self.cell_horizontal_border_type = attributes[:'CellHorizontalBorderType'] end if attributes.has_key?(:'CellHorizontalBorderSize') self.cell_horizontal_border_size = attributes[:'CellHorizontalBorderSize'] end if attributes.has_key?(:'CellHorizontalBorderSpace') self.cell_horizontal_border_space = attributes[:'CellHorizontalBorderSpace'] end if attributes.has_key?(:'CellHorizontalBorderColor') self.cell_horizontal_border_color = attributes[:'CellHorizontalBorderColor'] end if attributes.has_key?(:'CellVerticalBorderType') self.cell_vertical_border_type = attributes[:'CellVerticalBorderType'] end if attributes.has_key?(:'CellVerticalBorderSize') self.cell_vertical_border_size = attributes[:'CellVerticalBorderSize'] end if attributes.has_key?(:'CellVerticalBorderSpace') self.cell_vertical_border_space = attributes[:'CellVerticalBorderSpace'] end if attributes.has_key?(:'CellVerticalBorderColor') self.cell_vertical_border_color = attributes[:'CellVerticalBorderColor'] end if attributes.has_key?(:'StartBorderType') self.start_border_type = attributes[:'StartBorderType'] end if attributes.has_key?(:'StartBorderSize') self.start_border_size = attributes[:'StartBorderSize'] end if attributes.has_key?(:'StartBorderSpace') self.start_border_space = attributes[:'StartBorderSpace'] end if attributes.has_key?(:'StartBorderColor') self.start_border_color = attributes[:'StartBorderColor'] end if attributes.has_key?(:'EndBorderType') self.end_border_type = attributes[:'EndBorderType'] end if attributes.has_key?(:'EndBorderSize') self.end_border_size = attributes[:'EndBorderSize'] end if attributes.has_key?(:'EndBorderSpace') self.end_border_space = attributes[:'EndBorderSpace'] end if attributes.has_key?(:'EndBorderColor') self.end_border_color = attributes[:'EndBorderColor'] end if attributes.has_key?(:'TableIndentationMode') self.table_indentation_mode = attributes[:'TableIndentationMode'] end if attributes.has_key?(:'TableIndentationWidth') self.table_indentation_width = attributes[:'TableIndentationWidth'] end end |
Instance Attribute Details
#bottom_border_color ⇒ Object
HTML-style color hex value (do not include a #)
55 56 57 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 55 def bottom_border_color @bottom_border_color end |
#bottom_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
49 50 51 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 49 def bottom_border_size @bottom_border_size end |
#bottom_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
52 53 54 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 52 def bottom_border_space @bottom_border_space end |
#bottom_border_type ⇒ Object
Type for the bottom border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
46 47 48 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 46 def bottom_border_type @bottom_border_type end |
#cell_horizontal_border_color ⇒ Object
HTML-style color hex value (do not include a #)
91 92 93 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 91 def cell_horizontal_border_color @cell_horizontal_border_color end |
#cell_horizontal_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
85 86 87 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 85 def cell_horizontal_border_size @cell_horizontal_border_size end |
#cell_horizontal_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
88 89 90 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 88 def cell_horizontal_border_space @cell_horizontal_border_space end |
#cell_horizontal_border_type ⇒ Object
Type for the cell horizontal border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
82 83 84 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 82 def cell_horizontal_border_type @cell_horizontal_border_type end |
#cell_vertical_border_color ⇒ Object
HTML-style color hex value (do not include a #)
103 104 105 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 103 def cell_vertical_border_color @cell_vertical_border_color end |
#cell_vertical_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
97 98 99 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 97 def cell_vertical_border_size @cell_vertical_border_size end |
#cell_vertical_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
100 101 102 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 100 def cell_vertical_border_space @cell_vertical_border_space end |
#cell_vertical_border_type ⇒ Object
Type for the cell vertical border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
94 95 96 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 94 def cell_vertical_border_type @cell_vertical_border_type end |
#end_border_color ⇒ Object
HTML-style color hex value (do not include a #)
127 128 129 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 127 def end_border_color @end_border_color end |
#end_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
121 122 123 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 121 def end_border_size @end_border_size end |
#end_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
124 125 126 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 124 def end_border_space @end_border_space end |
#end_border_type ⇒ Object
Type for the end border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
118 119 120 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 118 def end_border_type @end_border_type end |
#left_border_color ⇒ Object
HTML-style color hex value (do not include a #)
67 68 69 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 67 def left_border_color @left_border_color end |
#left_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
61 62 63 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 61 def left_border_size @left_border_size end |
#left_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
64 65 66 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 64 def left_border_space @left_border_space end |
#left_border_type ⇒ Object
Type for the left border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
58 59 60 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 58 def left_border_type @left_border_type end |
#path ⇒ Object
The Path of the location of this object; leave blank for new tables
22 23 24 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 22 def path @path end |
#right_border_color ⇒ Object
HTML-style color hex value (do not include a #)
79 80 81 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 79 def right_border_color @right_border_color end |
#right_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
73 74 75 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 73 def right_border_size @right_border_size end |
#right_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
76 77 78 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 76 def right_border_space @right_border_space end |
#right_border_type ⇒ Object
Type for the right border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
70 71 72 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 70 def right_border_type @right_border_type end |
#start_border_color ⇒ Object
HTML-style color hex value (do not include a #)
115 116 117 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 115 def start_border_color @start_border_color end |
#start_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
109 110 111 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 109 def start_border_size @start_border_size end |
#start_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
112 113 114 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 112 def start_border_space @start_border_space end |
#start_border_type ⇒ Object
Type for the start border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
106 107 108 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 106 def start_border_type @start_border_type end |
#table_id ⇒ Object
The ID of the table; leave blank for new tables
19 20 21 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 19 def table_id @table_id end |
#table_indentation_mode ⇒ Object
Table indentation type
130 131 132 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 130 def table_indentation_mode @table_indentation_mode end |
#table_indentation_width ⇒ Object
Table indentation width
133 134 135 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 133 def table_indentation_width @table_indentation_width end |
#table_rows ⇒ Object
Rows in the table; this is where the contents is located
31 32 33 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 31 def table_rows @table_rows end |
#top_border_color ⇒ Object
HTML-style color hex value (do not include a #)
43 44 45 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 43 def top_border_color @top_border_color end |
#top_border_size ⇒ Object
Width of the border in points (1/72nd of an inch)
37 38 39 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 37 def top_border_size @top_border_size end |
#top_border_space ⇒ Object
Spacing around the border in points (1/72nd of an inch)
40 41 42 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 40 def top_border_space @top_border_space end |
#top_border_type ⇒ Object
Type for the top border - can be a Single, DashDotStroked, Dashed, DashSmallGap, DotDash, DotDotDash, Dotted, Double, DoubleWave, Inset, Nil, None, Outset, Thick, ThickThinLargeGap, ThickThinMediumGap, ThickThinSmallGap, ThinThickLargeGap, ThinThickMediumGap, ThinThickSmallGap, ThinThickThinLargeGap, ThinThickThinMediumGap, ThinThickThinSmallGap, ThreeDEmboss, ThreeDEngrave, Triple, Wave
34 35 36 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 34 def top_border_type @top_border_type end |
#width ⇒ Object
The Width of the table, or 0 if not specified
25 26 27 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 25 def width @width end |
#width_type ⇒ Object
The Width configuration type of the table
28 29 30 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 28 def width_type @width_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 137 def self.attribute_map { :'table_id' => :'TableID', :'path' => :'Path', :'width' => :'Width', :'width_type' => :'WidthType', :'table_rows' => :'TableRows', :'top_border_type' => :'TopBorderType', :'top_border_size' => :'TopBorderSize', :'top_border_space' => :'TopBorderSpace', :'top_border_color' => :'TopBorderColor', :'bottom_border_type' => :'BottomBorderType', :'bottom_border_size' => :'BottomBorderSize', :'bottom_border_space' => :'BottomBorderSpace', :'bottom_border_color' => :'BottomBorderColor', :'left_border_type' => :'LeftBorderType', :'left_border_size' => :'LeftBorderSize', :'left_border_space' => :'LeftBorderSpace', :'left_border_color' => :'LeftBorderColor', :'right_border_type' => :'RightBorderType', :'right_border_size' => :'RightBorderSize', :'right_border_space' => :'RightBorderSpace', :'right_border_color' => :'RightBorderColor', :'cell_horizontal_border_type' => :'CellHorizontalBorderType', :'cell_horizontal_border_size' => :'CellHorizontalBorderSize', :'cell_horizontal_border_space' => :'CellHorizontalBorderSpace', :'cell_horizontal_border_color' => :'CellHorizontalBorderColor', :'cell_vertical_border_type' => :'CellVerticalBorderType', :'cell_vertical_border_size' => :'CellVerticalBorderSize', :'cell_vertical_border_space' => :'CellVerticalBorderSpace', :'cell_vertical_border_color' => :'CellVerticalBorderColor', :'start_border_type' => :'StartBorderType', :'start_border_size' => :'StartBorderSize', :'start_border_space' => :'StartBorderSpace', :'start_border_color' => :'StartBorderColor', :'end_border_type' => :'EndBorderType', :'end_border_size' => :'EndBorderSize', :'end_border_space' => :'EndBorderSpace', :'end_border_color' => :'EndBorderColor', :'table_indentation_mode' => :'TableIndentationMode', :'table_indentation_width' => :'TableIndentationWidth' } end |
.swagger_types ⇒ Object
Attribute type mapping.
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 182 def self.swagger_types { :'table_id' => :'String', :'path' => :'String', :'width' => :'String', :'width_type' => :'String', :'table_rows' => :'Array<DocxTableRow>', :'top_border_type' => :'String', :'top_border_size' => :'Integer', :'top_border_space' => :'Integer', :'top_border_color' => :'String', :'bottom_border_type' => :'String', :'bottom_border_size' => :'Integer', :'bottom_border_space' => :'Integer', :'bottom_border_color' => :'String', :'left_border_type' => :'String', :'left_border_size' => :'Integer', :'left_border_space' => :'Integer', :'left_border_color' => :'String', :'right_border_type' => :'String', :'right_border_size' => :'Integer', :'right_border_space' => :'Integer', :'right_border_color' => :'String', :'cell_horizontal_border_type' => :'String', :'cell_horizontal_border_size' => :'Integer', :'cell_horizontal_border_space' => :'Integer', :'cell_horizontal_border_color' => :'String', :'cell_vertical_border_type' => :'String', :'cell_vertical_border_size' => :'Integer', :'cell_vertical_border_space' => :'Integer', :'cell_vertical_border_color' => :'String', :'start_border_type' => :'String', :'start_border_size' => :'Integer', :'start_border_space' => :'Integer', :'start_border_color' => :'String', :'end_border_type' => :'String', :'end_border_size' => :'Integer', :'end_border_space' => :'Integer', :'end_border_color' => :'String', :'table_indentation_mode' => :'String', :'table_indentation_width' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 409 def ==(o) return true if self.equal?(o) self.class == o.class && table_id == o.table_id && path == o.path && width == o.width && width_type == o.width_type && table_rows == o.table_rows && top_border_type == o.top_border_type && top_border_size == o.top_border_size && top_border_space == o.top_border_space && top_border_color == o.top_border_color && bottom_border_type == o.bottom_border_type && bottom_border_size == o.bottom_border_size && bottom_border_space == o.bottom_border_space && bottom_border_color == o.bottom_border_color && left_border_type == o.left_border_type && left_border_size == o.left_border_size && left_border_space == o.left_border_space && left_border_color == o.left_border_color && right_border_type == o.right_border_type && right_border_size == o.right_border_size && right_border_space == o.right_border_space && right_border_color == o.right_border_color && cell_horizontal_border_type == o.cell_horizontal_border_type && cell_horizontal_border_size == o.cell_horizontal_border_size && cell_horizontal_border_space == o.cell_horizontal_border_space && cell_horizontal_border_color == o.cell_horizontal_border_color && cell_vertical_border_type == o.cell_vertical_border_type && cell_vertical_border_size == o.cell_vertical_border_size && cell_vertical_border_space == o.cell_vertical_border_space && cell_vertical_border_color == o.cell_vertical_border_color && start_border_type == o.start_border_type && start_border_size == o.start_border_size && start_border_space == o.start_border_space && start_border_color == o.start_border_color && end_border_type == o.end_border_type && end_border_size == o.end_border_size && end_border_space == o.end_border_space && end_border_color == o.end_border_color && table_indentation_mode == o.table_indentation_mode && table_indentation_width == o.table_indentation_width end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 489 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CloudmersiveConvertApiClient.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
555 556 557 558 559 560 561 562 563 564 565 566 567 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 555 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 468 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
455 456 457 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 455 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
461 462 463 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 461 def hash [table_id, path, width, width_type, table_rows, top_border_type, top_border_size, top_border_space, top_border_color, bottom_border_type, bottom_border_size, bottom_border_space, bottom_border_color, left_border_type, left_border_size, left_border_space, left_border_color, right_border_type, right_border_size, right_border_space, right_border_color, cell_horizontal_border_type, cell_horizontal_border_size, cell_horizontal_border_space, cell_horizontal_border_color, cell_vertical_border_type, cell_vertical_border_size, cell_vertical_border_space, cell_vertical_border_color, start_border_type, start_border_size, start_border_space, start_border_color, end_border_type, end_border_size, end_border_space, end_border_color, table_indentation_mode, table_indentation_width].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
396 397 398 399 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 396 def list_invalid_properties invalid_properties = Array.new return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
535 536 537 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 535 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
541 542 543 544 545 546 547 548 549 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 541 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
529 530 531 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 529 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
403 404 405 |
# File 'lib/cloudmersive-convert-api-client/models/docx_table.rb', line 403 def valid? return true end |