Class: DocSpring::TemplatestemplateIdaddFieldsFields

Inherits:
Object
  • Object
show all
Defined in:
lib/docspring/models/templatestemplate_idadd_fields_fields.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ TemplatestemplateIdaddFieldsFields

Initializes the object

Parameters:

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

    Model attributes in the form of hash



393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
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
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 393

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?(:'backgroundColorFieldName')
    self.background_color_field_name = attributes[:'backgroundColorFieldName']
  end

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

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

  if attributes.has_key?(:'barcodeSymbology')
    self.barcode_symbology = attributes[:'barcodeSymbology']
  end

  if attributes.has_key?(:'minLength')
    self.min_length = attributes[:'minLength']
  end

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

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

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

  if attributes.has_key?(:'combValueOffset')
    self.comb_value_offset = attributes[:'combValueOffset']
  end

  if attributes.has_key?(:'imageGravity')
    self.image_gravity = attributes[:'imageGravity']
  end

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

  if attributes.has_key?(:'qrcodeColor')
    self.qrcode_color = attributes[:'qrcodeColor']
  end

  if attributes.has_key?(:'colorFieldRequired')
    self.color_field_required = attributes[:'colorFieldRequired']
  end

  if attributes.has_key?(:'backgroundColorFieldRequired')
    self.background_color_field_required = attributes[:'backgroundColorFieldRequired']
  end

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

  if attributes.has_key?(:'imageScaleType')
    self.image_scale_type = attributes[:'imageScaleType']
  end

  if attributes.has_key?(:'exclusiveMinimum')
    self.exclusive_minimum = attributes[:'exclusiveMinimum']
  end

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

  if attributes.has_key?(:'numberConditionRangeExclusiveMax')
    self.number_condition_range_exclusive_max = attributes[:'numberConditionRangeExclusiveMax']
  end

  if attributes.has_key?(:'invertBooleanCondition')
    self.invert_boolean_condition = attributes[:'invertBooleanCondition']
  end

  if attributes.has_key?(:'shapeFillColorFieldName')
    self.shape_fill_color_field_name = attributes[:'shapeFillColorFieldName']
  end

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

  if attributes.has_key?(:'shapeBorderColorFieldName')
    self.shape_border_color_field_name = attributes[:'shapeBorderColorFieldName']
  end

  if attributes.has_key?(:'vAlignment')
    self.v_alignment = attributes[:'vAlignment']
  end

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

  if attributes.has_key?(:'shapeBorderWidth')
    self.shape_border_width = attributes[:'shapeBorderWidth']
  end

  if attributes.has_key?(:'combNumberOfCells')
    self.comb_number_of_cells = attributes[:'combNumberOfCells']
  end

  if attributes.has_key?(:'shapeBorderColor')
    self.shape_border_color = attributes[:'shapeBorderColor']
  end

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

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

  if attributes.has_key?(:'shapeType')
    self.shape_type = attributes[:'shapeType']
  end

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

  if attributes.has_key?(:'displayType')
    self.display_type = attributes[:'displayType']
  end

  if attributes.has_key?(:'checkColor')
    self.check_color = attributes[:'checkColor']
  end

  if attributes.has_key?(:'multilineLines')
    self.multiline_lines = attributes[:'multilineLines']
  end

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

  if attributes.has_key?(:'trueText')
    self.true_text = attributes[:'trueText']
  end

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

  if attributes.has_key?(:'fontSize')
    self.font_size = attributes[:'fontSize']
  end

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

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

  if attributes.has_key?(:'maxLength')
    self.max_length = attributes[:'maxLength']
  end

  if attributes.has_key?(:'autoCalculateMaxLength')
    self.auto_calculate_max_length = attributes[:'autoCalculateMaxLength']
  end

  if attributes.has_key?(:'colorFieldName')
    self.color_field_name = attributes[:'colorFieldName']
  end

  if attributes.has_key?(:'qrcodeColorFieldName')
    self.qrcode_color_field_name = attributes[:'qrcodeColorFieldName']
  end

  if attributes.has_key?(:'numberConditionRangeMin')
    self.number_condition_range_min = attributes[:'numberConditionRangeMin']
  end

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

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

  if attributes.has_key?(:'checkColorFieldRequired')
    self.check_color_field_required = attributes[:'checkColorFieldRequired']
  end

  if attributes.has_key?(:'combinedFieldFormat')
    self.combined_field_format = attributes[:'combinedFieldFormat']
  end

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

  if attributes.has_key?(:'shapeBorderColorFieldRequired')
    self.shape_border_color_field_required = attributes[:'shapeBorderColorFieldRequired']
  end

  if attributes.has_key?(:'combinedFieldNames')
    self.combined_field_names = attributes[:'combinedFieldNames']
  end

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

  if attributes.has_key?(:'numberConditionRangeExclusiveMin')
    self.number_condition_range_exclusive_min = attributes[:'numberConditionRangeExclusiveMin']
  end

  if attributes.has_key?(:'combinedFieldSeparator')
    self.combined_field_separator = attributes[:'combinedFieldSeparator']
  end

  if attributes.has_key?(:'exclusiveMaximum')
    self.exclusive_maximum = attributes[:'exclusiveMaximum']
  end

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

  if attributes.has_key?(:'combinedFieldType')
    self.combined_field_type = attributes[:'combinedFieldType']
  end

  if attributes.has_key?(:'dateTimeFormat')
    self.date_time_format = attributes[:'dateTimeFormat']
  end

  if attributes.has_key?(:'qrcodeColorFieldRequired')
    self.qrcode_color_field_required = attributes[:'qrcodeColorFieldRequired']
  end

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

  if attributes.has_key?(:'falseText')
    self.false_text = attributes[:'falseText']
  end

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

  if attributes.has_key?(:'characterSpacing')
    self.character_spacing = attributes[:'characterSpacing']
  end

  if attributes.has_key?(:'numberConditionRangeMax')
    self.number_condition_range_max = attributes[:'numberConditionRangeMax']
  end

  if attributes.has_key?(:'backgroundColor')
    self.background_color = attributes[:'backgroundColor']
  end

  if attributes.has_key?(:'checkColorFieldName')
    self.check_color_field_name = attributes[:'checkColorFieldName']
  end

  if attributes.has_key?(:'checkCharacter')
    self.check_character = attributes[:'checkCharacter']
  end

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

  if attributes.has_key?(:'optionList')
    self.option_list = attributes[:'optionList']
  end

  if attributes.has_key?(:'shapeFillColor')
    self.shape_fill_color = attributes[:'shapeFillColor']
  end

  if attributes.has_key?(:'stringConditionType')
    self.string_condition_type = attributes[:'stringConditionType']
  end

  if attributes.has_key?(:'shapeFillColorFieldRequired')
    self.shape_fill_color_field_required = attributes[:'shapeFillColorFieldRequired']
  end

  if attributes.has_key?(:'decimalPlaces')
    self.decimal_places = attributes[:'decimalPlaces']
  end

  if attributes.has_key?(:'includeTime')
    self.include_time = attributes[:'includeTime']
  end

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

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

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

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

  if attributes.has_key?(:'signatureAllowDraw')
    self.signature_allow_draw = attributes[:'signatureAllowDraw']
  end

  if attributes.has_key?(:'numberConditionType')
    self.number_condition_type = attributes[:'numberConditionType']
  end

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

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

  if attributes.has_key?(:'signatureAllowType')
    self.signature_allow_type = attributes[:'signatureAllowType']
  end
end

Instance Attribute Details

#alignmentObject

Returns the value of attribute alignment.



97
98
99
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 97

def alignment
  @alignment
end

#auto_calculate_max_lengthObject

Returns the value of attribute auto_calculate_max_length.



101
102
103
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 101

def auto_calculate_max_length
  @auto_calculate_max_length
end

#background_colorObject

Returns the value of attribute background_color.



149
150
151
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 149

def background_color
  @background_color
end

#background_color_field_nameObject

Returns the value of attribute background_color_field_name.



17
18
19
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 17

def background_color_field_name
  @background_color_field_name
end

#background_color_field_requiredObject

Returns the value of attribute background_color_field_required.



43
44
45
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 43

def background_color_field_required
  @background_color_field_required
end

#barcode_symbologyObject

Returns the value of attribute barcode_symbology.



23
24
25
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 23

def barcode_symbology
  @barcode_symbology
end

#boldObject

Returns the value of attribute bold.



65
66
67
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 65

def bold
  @bold
end

#character_spacingObject

Returns the value of attribute character_spacing.



145
146
147
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 145

def character_spacing
  @character_spacing
end

#check_characterObject

Returns the value of attribute check_character.



153
154
155
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 153

def check_character
  @check_character
end

#check_colorObject

Returns the value of attribute check_color.



83
84
85
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 83

def check_color
  @check_color
end

#check_color_field_nameObject

Returns the value of attribute check_color_field_name.



151
152
153
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 151

def check_color_field_name
  @check_color_field_name
end

#check_color_field_requiredObject

Returns the value of attribute check_color_field_required.



113
114
115
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 113

def check_color_field_required
  @check_color_field_required
end

#colorObject

Returns the value of attribute color.



109
110
111
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 109

def color
  @color
end

#color_field_nameObject

Returns the value of attribute color_field_name.



103
104
105
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 103

def color_field_name
  @color_field_name
end

#color_field_requiredObject

Returns the value of attribute color_field_required.



41
42
43
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 41

def color_field_required
  @color_field_required
end

#combObject

Returns the value of attribute comb.



73
74
75
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 73

def comb
  @comb
end

#comb_number_of_cellsObject

Returns the value of attribute comb_number_of_cells.



69
70
71
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 69

def comb_number_of_cells
  @comb_number_of_cells
end

#comb_value_offsetObject

Returns the value of attribute comb_value_offset.



33
34
35
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 33

def comb_value_offset
  @comb_value_offset
end

#combined_field_formatObject

Returns the value of attribute combined_field_format.



115
116
117
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 115

def combined_field_format
  @combined_field_format
end

#combined_field_namesObject

Returns the value of attribute combined_field_names.



121
122
123
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 121

def combined_field_names
  @combined_field_names
end

#combined_field_separatorObject

Returns the value of attribute combined_field_separator.



127
128
129
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 127

def combined_field_separator
  @combined_field_separator
end

#combined_field_typeObject

Returns the value of attribute combined_field_type.



133
134
135
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 133

def combined_field_type
  @combined_field_type
end

#conditionObject

Returns the value of attribute condition.



79
80
81
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 79

def condition
  @condition
end

#currencyObject

Returns the value of attribute currency.



139
140
141
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 139

def currency
  @currency
end

#date_time_formatObject

Returns the value of attribute date_time_format.



135
136
137
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 135

def date_time_format
  @date_time_format
end

#decimal_placesObject

Returns the value of attribute decimal_places.



165
166
167
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 165

def decimal_places
  @decimal_places
end

#defaultObject

Returns the value of attribute default.



131
132
133
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 131

def default
  @default
end

#descriptionObject

Returns the value of attribute description.



117
118
119
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 117

def description
  @description
end

#display_typeObject

Returns the value of attribute display_type.



81
82
83
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 81

def display_type
  @display_type
end

#exclusive_maximumObject

Returns the value of attribute exclusive_maximum.



129
130
131
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 129

def exclusive_maximum
  @exclusive_maximum
end

#exclusive_minimumObject

Returns the value of attribute exclusive_minimum.



49
50
51
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 49

def exclusive_minimum
  @exclusive_minimum
end

#false_textObject

Returns the value of attribute false_text.



141
142
143
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 141

def false_text
  @false_text
end

#font_sizeObject

Returns the value of attribute font_size.



93
94
95
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 93

def font_size
  @font_size
end

#heightObject

Returns the value of attribute height.



51
52
53
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 51

def height
  @height
end

#hiddenObject

Returns the value of attribute hidden.



111
112
113
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 111

def hidden
  @hidden
end

#idObject

Returns the value of attribute id.



45
46
47
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 45

def id
  @id
end

#image_gravityObject

Returns the value of attribute image_gravity.



35
36
37
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 35

def image_gravity
  @image_gravity
end

#image_scale_typeObject

Returns the value of attribute image_scale_type.



47
48
49
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 47

def image_scale_type
  @image_scale_type
end

#include_timeObject

Returns the value of attribute include_time.



167
168
169
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 167

def include_time
  @include_time
end

#integerObject

Returns the value of attribute integer.



27
28
29
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 27

def integer
  @integer
end

#invert_boolean_conditionObject

Returns the value of attribute invert_boolean_condition.



55
56
57
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 55

def invert_boolean_condition
  @invert_boolean_condition
end

#max_lengthObject

Returns the value of attribute max_length.



99
100
101
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 99

def max_length
  @max_length
end

#maximumObject

Returns the value of attribute maximum.



173
174
175
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 173

def maximum
  @maximum
end

#metadataObject

Returns the value of attribute metadata.



21
22
23
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 21

def 
  @metadata
end

#min_lengthObject

Returns the value of attribute min_length.



25
26
27
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 25

def min_length
  @min_length
end

#minimumObject

Returns the value of attribute minimum.



183
184
185
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 183

def minimum
  @minimum
end

#multilineObject

Returns the value of attribute multiline.



87
88
89
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 87

def multiline
  @multiline
end

#multiline_linesObject

Returns the value of attribute multiline_lines.



85
86
87
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 85

def multiline_lines
  @multiline_lines
end

#nameObject

Returns the value of attribute name.



91
92
93
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 91

def name
  @name
end

#number_condition_range_exclusive_maxObject

Returns the value of attribute number_condition_range_exclusive_max.



53
54
55
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 53

def number_condition_range_exclusive_max
  @number_condition_range_exclusive_max
end

#number_condition_range_exclusive_minObject

Returns the value of attribute number_condition_range_exclusive_min.



125
126
127
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 125

def number_condition_range_exclusive_min
  @number_condition_range_exclusive_min
end

#number_condition_range_maxObject

Returns the value of attribute number_condition_range_max.



147
148
149
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 147

def number_condition_range_max
  @number_condition_range_max
end

#number_condition_range_minObject

Returns the value of attribute number_condition_range_min.



107
108
109
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 107

def number_condition_range_min
  @number_condition_range_min
end

#number_condition_typeObject

Returns the value of attribute number_condition_type.



179
180
181
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 179

def number_condition_type
  @number_condition_type
end

#opacityObject

Returns the value of attribute opacity.



181
182
183
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 181

def opacity
  @opacity
end

#option_listObject

Returns the value of attribute option_list.



157
158
159
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 157

def option_list
  @option_list
end

#overflowObject

Returns the value of attribute overflow.



37
38
39
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 37

def overflow
  @overflow
end

#pageObject

Returns the value of attribute page.



95
96
97
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 95

def page
  @page
end

#qrcode_colorObject

Returns the value of attribute qrcode_color.



39
40
41
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 39

def qrcode_color
  @qrcode_color
end

#qrcode_color_field_nameObject

Returns the value of attribute qrcode_color_field_name.



105
106
107
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 105

def qrcode_color_field_name
  @qrcode_color_field_name
end

#qrcode_color_field_requiredObject

Returns the value of attribute qrcode_color_field_required.



137
138
139
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 137

def qrcode_color_field_required
  @qrcode_color_field_required
end

#requiredObject

Returns the value of attribute required.



31
32
33
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 31

def required
  @required
end

#rotationObject

Returns the value of attribute rotation.



155
156
157
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 155

def rotation
  @rotation
end

#shape_border_colorObject

Returns the value of attribute shape_border_color.



71
72
73
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 71

def shape_border_color
  @shape_border_color
end

#shape_border_color_field_nameObject

Returns the value of attribute shape_border_color_field_name.



61
62
63
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 61

def shape_border_color_field_name
  @shape_border_color_field_name
end

#shape_border_color_field_requiredObject

Returns the value of attribute shape_border_color_field_required.



119
120
121
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 119

def shape_border_color_field_required
  @shape_border_color_field_required
end

#shape_border_widthObject

Returns the value of attribute shape_border_width.



67
68
69
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 67

def shape_border_width
  @shape_border_width
end

#shape_fill_colorObject

Returns the value of attribute shape_fill_color.



159
160
161
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 159

def shape_fill_color
  @shape_fill_color
end

#shape_fill_color_field_nameObject

Returns the value of attribute shape_fill_color_field_name.



57
58
59
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 57

def shape_fill_color_field_name
  @shape_fill_color_field_name
end

#shape_fill_color_field_requiredObject

Returns the value of attribute shape_fill_color_field_required.



163
164
165
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 163

def shape_fill_color_field_required
  @shape_fill_color_field_required
end

#shape_typeObject

Returns the value of attribute shape_type.



77
78
79
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 77

def shape_type
  @shape_type
end

#signature_allow_drawObject

Returns the value of attribute signature_allow_draw.



177
178
179
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 177

def signature_allow_draw
  @signature_allow_draw
end

#signature_allow_typeObject

Returns the value of attribute signature_allow_type.



185
186
187
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 185

def signature_allow_type
  @signature_allow_type
end

#staticObject

Returns the value of attribute static.



59
60
61
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 59

def static
  @static
end

#strikethroughObject

Returns the value of attribute strikethrough.



143
144
145
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 143

def strikethrough
  @strikethrough
end

#string_condition_typeObject

Returns the value of attribute string_condition_type.



161
162
163
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 161

def string_condition_type
  @string_condition_type
end

#titleObject

Returns the value of attribute title.



123
124
125
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 123

def title
  @title
end

#true_textObject

Returns the value of attribute true_text.



89
90
91
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 89

def true_text
  @true_text
end

#typeObject

Returns the value of attribute type.



29
30
31
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 29

def type
  @type
end

#typefaceObject

Returns the value of attribute typeface.



75
76
77
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 75

def typeface
  @typeface
end

#uppercaseObject

Returns the value of attribute uppercase.



19
20
21
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 19

def uppercase
  @uppercase
end

#v_alignmentObject

Returns the value of attribute v_alignment.



63
64
65
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 63

def v_alignment
  @v_alignment
end

#widthObject

Returns the value of attribute width.



169
170
171
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 169

def width
  @width
end

#xObject

Returns the value of attribute x.



171
172
173
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 171

def x
  @x
end

#yObject

Returns the value of attribute y.



175
176
177
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 175

def y
  @y
end

Class Method Details

.attribute_mapObject

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



210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
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
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 210

def self.attribute_map
  {
    :'background_color_field_name' => :'backgroundColorFieldName',
    :'uppercase' => :'uppercase',
    :'metadata' => :'metadata',
    :'barcode_symbology' => :'barcodeSymbology',
    :'min_length' => :'minLength',
    :'integer' => :'integer',
    :'type' => :'type',
    :'required' => :'required',
    :'comb_value_offset' => :'combValueOffset',
    :'image_gravity' => :'imageGravity',
    :'overflow' => :'overflow',
    :'qrcode_color' => :'qrcodeColor',
    :'color_field_required' => :'colorFieldRequired',
    :'background_color_field_required' => :'backgroundColorFieldRequired',
    :'id' => :'id',
    :'image_scale_type' => :'imageScaleType',
    :'exclusive_minimum' => :'exclusiveMinimum',
    :'height' => :'height',
    :'number_condition_range_exclusive_max' => :'numberConditionRangeExclusiveMax',
    :'invert_boolean_condition' => :'invertBooleanCondition',
    :'shape_fill_color_field_name' => :'shapeFillColorFieldName',
    :'static' => :'static',
    :'shape_border_color_field_name' => :'shapeBorderColorFieldName',
    :'v_alignment' => :'vAlignment',
    :'bold' => :'bold',
    :'shape_border_width' => :'shapeBorderWidth',
    :'comb_number_of_cells' => :'combNumberOfCells',
    :'shape_border_color' => :'shapeBorderColor',
    :'comb' => :'comb',
    :'typeface' => :'typeface',
    :'shape_type' => :'shapeType',
    :'condition' => :'condition',
    :'display_type' => :'displayType',
    :'check_color' => :'checkColor',
    :'multiline_lines' => :'multilineLines',
    :'multiline' => :'multiline',
    :'true_text' => :'trueText',
    :'name' => :'name',
    :'font_size' => :'fontSize',
    :'page' => :'page',
    :'alignment' => :'alignment',
    :'max_length' => :'maxLength',
    :'auto_calculate_max_length' => :'autoCalculateMaxLength',
    :'color_field_name' => :'colorFieldName',
    :'qrcode_color_field_name' => :'qrcodeColorFieldName',
    :'number_condition_range_min' => :'numberConditionRangeMin',
    :'color' => :'color',
    :'hidden' => :'hidden',
    :'check_color_field_required' => :'checkColorFieldRequired',
    :'combined_field_format' => :'combinedFieldFormat',
    :'description' => :'description',
    :'shape_border_color_field_required' => :'shapeBorderColorFieldRequired',
    :'combined_field_names' => :'combinedFieldNames',
    :'title' => :'title',
    :'number_condition_range_exclusive_min' => :'numberConditionRangeExclusiveMin',
    :'combined_field_separator' => :'combinedFieldSeparator',
    :'exclusive_maximum' => :'exclusiveMaximum',
    :'default' => :'default',
    :'combined_field_type' => :'combinedFieldType',
    :'date_time_format' => :'dateTimeFormat',
    :'qrcode_color_field_required' => :'qrcodeColorFieldRequired',
    :'currency' => :'currency',
    :'false_text' => :'falseText',
    :'strikethrough' => :'strikethrough',
    :'character_spacing' => :'characterSpacing',
    :'number_condition_range_max' => :'numberConditionRangeMax',
    :'background_color' => :'backgroundColor',
    :'check_color_field_name' => :'checkColorFieldName',
    :'check_character' => :'checkCharacter',
    :'rotation' => :'rotation',
    :'option_list' => :'optionList',
    :'shape_fill_color' => :'shapeFillColor',
    :'string_condition_type' => :'stringConditionType',
    :'shape_fill_color_field_required' => :'shapeFillColorFieldRequired',
    :'decimal_places' => :'decimalPlaces',
    :'include_time' => :'includeTime',
    :'width' => :'width',
    :'x' => :'x',
    :'maximum' => :'maximum',
    :'y' => :'y',
    :'signature_allow_draw' => :'signatureAllowDraw',
    :'number_condition_type' => :'numberConditionType',
    :'opacity' => :'opacity',
    :'minimum' => :'minimum',
    :'signature_allow_type' => :'signatureAllowType'
  }
end

.openapi_typesObject

Attribute type mapping.



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
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 301

def self.openapi_types
  {
    :'background_color_field_name' => :'String',
    :'uppercase' => :'BOOLEAN',
    :'metadata' => :'String',
    :'barcode_symbology' => :'String',
    :'min_length' => :'Float',
    :'integer' => :'BOOLEAN',
    :'type' => :'String',
    :'required' => :'BOOLEAN',
    :'comb_value_offset' => :'Float',
    :'image_gravity' => :'String',
    :'overflow' => :'String',
    :'qrcode_color' => :'String',
    :'color_field_required' => :'BOOLEAN',
    :'background_color_field_required' => :'BOOLEAN',
    :'id' => :'Float',
    :'image_scale_type' => :'String',
    :'exclusive_minimum' => :'BOOLEAN',
    :'height' => :'Float',
    :'number_condition_range_exclusive_max' => :'BOOLEAN',
    :'invert_boolean_condition' => :'BOOLEAN',
    :'shape_fill_color_field_name' => :'String',
    :'static' => :'BOOLEAN',
    :'shape_border_color_field_name' => :'String',
    :'v_alignment' => :'String',
    :'bold' => :'BOOLEAN',
    :'shape_border_width' => :'Float',
    :'comb_number_of_cells' => :'Float',
    :'shape_border_color' => :'String',
    :'comb' => :'BOOLEAN',
    :'typeface' => :'String',
    :'shape_type' => :'String',
    :'condition' => :'String',
    :'display_type' => :'String',
    :'check_color' => :'String',
    :'multiline_lines' => :'Float',
    :'multiline' => :'BOOLEAN',
    :'true_text' => :'String',
    :'name' => :'String',
    :'font_size' => :'Float',
    :'page' => :'Float',
    :'alignment' => :'String',
    :'max_length' => :'Float',
    :'auto_calculate_max_length' => :'BOOLEAN',
    :'color_field_name' => :'String',
    :'qrcode_color_field_name' => :'String',
    :'number_condition_range_min' => :'Float',
    :'color' => :'String',
    :'hidden' => :'BOOLEAN',
    :'check_color_field_required' => :'BOOLEAN',
    :'combined_field_format' => :'String',
    :'description' => :'String',
    :'shape_border_color_field_required' => :'BOOLEAN',
    :'combined_field_names' => :'String',
    :'title' => :'String',
    :'number_condition_range_exclusive_min' => :'BOOLEAN',
    :'combined_field_separator' => :'String',
    :'exclusive_maximum' => :'BOOLEAN',
    :'default' => :'String',
    :'combined_field_type' => :'String',
    :'date_time_format' => :'String',
    :'qrcode_color_field_required' => :'BOOLEAN',
    :'currency' => :'BOOLEAN',
    :'false_text' => :'String',
    :'strikethrough' => :'BOOLEAN',
    :'character_spacing' => :'Float',
    :'number_condition_range_max' => :'Float',
    :'background_color' => :'String',
    :'check_color_field_name' => :'String',
    :'check_character' => :'String',
    :'rotation' => :'Float',
    :'option_list' => :'String',
    :'shape_fill_color' => :'String',
    :'string_condition_type' => :'String',
    :'shape_fill_color_field_required' => :'BOOLEAN',
    :'decimal_places' => :'Float',
    :'include_time' => :'BOOLEAN',
    :'width' => :'Float',
    :'x' => :'Float',
    :'maximum' => :'Float',
    :'y' => :'Float',
    :'signature_allow_draw' => :'BOOLEAN',
    :'number_condition_type' => :'String',
    :'opacity' => :'Float',
    :'minimum' => :'Float',
    :'signature_allow_type' => :'BOOLEAN'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1100

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      background_color_field_name == o.background_color_field_name &&
      uppercase == o.uppercase &&
       == o. &&
      barcode_symbology == o.barcode_symbology &&
      min_length == o.min_length &&
      integer == o.integer &&
      type == o.type &&
      required == o.required &&
      comb_value_offset == o.comb_value_offset &&
      image_gravity == o.image_gravity &&
      overflow == o.overflow &&
      qrcode_color == o.qrcode_color &&
      color_field_required == o.color_field_required &&
      background_color_field_required == o.background_color_field_required &&
      id == o.id &&
      image_scale_type == o.image_scale_type &&
      exclusive_minimum == o.exclusive_minimum &&
      height == o.height &&
      number_condition_range_exclusive_max == o.number_condition_range_exclusive_max &&
      invert_boolean_condition == o.invert_boolean_condition &&
      shape_fill_color_field_name == o.shape_fill_color_field_name &&
      static == o.static &&
      shape_border_color_field_name == o.shape_border_color_field_name &&
      v_alignment == o.v_alignment &&
      bold == o.bold &&
      shape_border_width == o.shape_border_width &&
      comb_number_of_cells == o.comb_number_of_cells &&
      shape_border_color == o.shape_border_color &&
      comb == o.comb &&
      typeface == o.typeface &&
      shape_type == o.shape_type &&
      condition == o.condition &&
      display_type == o.display_type &&
      check_color == o.check_color &&
      multiline_lines == o.multiline_lines &&
      multiline == o.multiline &&
      true_text == o.true_text &&
      name == o.name &&
      font_size == o.font_size &&
      page == o.page &&
      alignment == o.alignment &&
      max_length == o.max_length &&
      auto_calculate_max_length == o.auto_calculate_max_length &&
      color_field_name == o.color_field_name &&
      qrcode_color_field_name == o.qrcode_color_field_name &&
      number_condition_range_min == o.number_condition_range_min &&
      color == o.color &&
      hidden == o.hidden &&
      check_color_field_required == o.check_color_field_required &&
      combined_field_format == o.combined_field_format &&
      description == o.description &&
      shape_border_color_field_required == o.shape_border_color_field_required &&
      combined_field_names == o.combined_field_names &&
      title == o.title &&
      number_condition_range_exclusive_min == o.number_condition_range_exclusive_min &&
      combined_field_separator == o.combined_field_separator &&
      exclusive_maximum == o.exclusive_maximum &&
      default == o.default &&
      combined_field_type == o.combined_field_type &&
      date_time_format == o.date_time_format &&
      qrcode_color_field_required == o.qrcode_color_field_required &&
      currency == o.currency &&
      false_text == o.false_text &&
      strikethrough == o.strikethrough &&
      character_spacing == o.character_spacing &&
      number_condition_range_max == o.number_condition_range_max &&
      background_color == o.background_color &&
      check_color_field_name == o.check_color_field_name &&
      check_character == o.check_character &&
      rotation == o.rotation &&
      option_list == o.option_list &&
      shape_fill_color == o.shape_fill_color &&
      string_condition_type == o.string_condition_type &&
      shape_fill_color_field_required == o.shape_fill_color_field_required &&
      decimal_places == o.decimal_places &&
      include_time == o.include_time &&
      width == o.width &&
      x == o.x &&
      maximum == o.maximum &&
      y == o.y &&
      signature_allow_draw == o.signature_allow_draw &&
      number_condition_type == o.number_condition_type &&
      opacity == o.opacity &&
      minimum == o.minimum &&
      signature_allow_type == o.signature_allow_type
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1226

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 = DocSpring.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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1292

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1205

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_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

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1192
1193
1194
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1192

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



1198
1199
1200
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1198

def hash
  [background_color_field_name, uppercase, , barcode_symbology, min_length, integer, type, required, comb_value_offset, image_gravity, overflow, qrcode_color, color_field_required, background_color_field_required, id, image_scale_type, exclusive_minimum, height, number_condition_range_exclusive_max, invert_boolean_condition, shape_fill_color_field_name, static, shape_border_color_field_name, v_alignment, bold, shape_border_width, comb_number_of_cells, shape_border_color, comb, typeface, shape_type, condition, display_type, check_color, multiline_lines, multiline, true_text, name, font_size, page, alignment, max_length, auto_calculate_max_length, color_field_name, qrcode_color_field_name, number_condition_range_min, color, hidden, check_color_field_required, combined_field_format, description, shape_border_color_field_required, combined_field_names, title, number_condition_range_exclusive_min, combined_field_separator, exclusive_maximum, default, combined_field_type, date_time_format, qrcode_color_field_required, currency, false_text, strikethrough, character_spacing, number_condition_range_max, background_color, check_color_field_name, check_character, rotation, option_list, shape_fill_color, string_condition_type, shape_fill_color_field_required, decimal_places, include_time, width, x, maximum, y, signature_allow_draw, number_condition_type, opacity, minimum, signature_allow_type].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 742

def list_invalid_properties
  invalid_properties = Array.new
  if !@id.nil? && @id < 0
    invalid_properties.push('invalid value for "id", must be greater than or equal to 0.')
  end

  if !@height.nil? && @height < 0
    invalid_properties.push('invalid value for "height", must be greater than or equal to 0.')
  end

  if !@shape_border_width.nil? && @shape_border_width < 0
    invalid_properties.push('invalid value for "shape_border_width", must be greater than or equal to 0.')
  end

  if !@comb_number_of_cells.nil? && @comb_number_of_cells < 0
    invalid_properties.push('invalid value for "comb_number_of_cells", must be greater than or equal to 0.')
  end

  if !@multiline_lines.nil? && @multiline_lines < 0
    invalid_properties.push('invalid value for "multiline_lines", must be greater than or equal to 0.')
  end

  if !@font_size.nil? && @font_size < 0
    invalid_properties.push('invalid value for "font_size", must be greater than or equal to 0.')
  end

  if !@page.nil? && @page < 1
    invalid_properties.push('invalid value for "page", must be greater than or equal to 1.')
  end

  if !@rotation.nil? && @rotation > 3.6E+2
    invalid_properties.push('invalid value for "rotation", must be smaller than or equal to 3.6E+2.')
  end

  if !@rotation.nil? && @rotation < 0
    invalid_properties.push('invalid value for "rotation", must be greater than or equal to 0.')
  end

  if !@decimal_places.nil? && @decimal_places < 0
    invalid_properties.push('invalid value for "decimal_places", must be greater than or equal to 0.')
  end

  if !@width.nil? && @width < 0
    invalid_properties.push('invalid value for "width", must be greater than or equal to 0.')
  end

  if !@x.nil? && @x < 0
    invalid_properties.push('invalid value for "x", must be greater than or equal to 0.')
  end

  if !@y.nil? && @y < 0
    invalid_properties.push('invalid value for "y", must be greater than or equal to 0.')
  end

  if !@opacity.nil? && @opacity > 1
    invalid_properties.push('invalid value for "opacity", must be smaller than or equal to 1.')
  end

  if !@opacity.nil? && @opacity < 0
    invalid_properties.push('invalid value for "opacity", must be greater than or equal to 0.')
  end

  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



1272
1273
1274
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1272

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



1278
1279
1280
1281
1282
1283
1284
1285
1286
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1278

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



1266
1267
1268
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 1266

def to_s
  to_hash.to_s
end

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
# File 'lib/docspring/models/templatestemplate_idadd_fields_fields.rb', line 809

def valid?
  type_validator = EnumAttributeValidator.new('String', ['string', 'number', 'boolean', 'date', 'address', 'country', 'email', 'url', 'image', 'signature', 'barcode', 'combined'])
  return false unless type_validator.valid?(@type)
  image_gravity_validator = EnumAttributeValidator.new('String', ['NorthWest', 'North', 'NorthEast', 'West', 'Center', 'East', 'SouthWest', 'South', 'SouthEast'])
  return false unless image_gravity_validator.valid?(@image_gravity)
  overflow_validator = EnumAttributeValidator.new('String', ['shrink_to_fit', 'truncate'])
  return false unless overflow_validator.valid?(@overflow)
  return false if !@id.nil? && @id < 0
  image_scale_type_validator = EnumAttributeValidator.new('String', ['fit', 'fill', 'stretch'])
  return false unless image_scale_type_validator.valid?(@image_scale_type)
  return false if !@height.nil? && @height < 0
  v_alignment_validator = EnumAttributeValidator.new('String', ['bottom', 'center', 'top'])
  return false unless v_alignment_validator.valid?(@v_alignment)
  return false if !@shape_border_width.nil? && @shape_border_width < 0
  return false if !@comb_number_of_cells.nil? && @comb_number_of_cells < 0
  shape_type_validator = EnumAttributeValidator.new('String', ['square', 'rectangle', 'circle', 'ellipse'])
  return false unless shape_type_validator.valid?(@shape_type)
  display_type_validator = EnumAttributeValidator.new('String', ['text', 'check', 'qrcode', 'barcode', 'image', 'shape'])
  return false unless display_type_validator.valid?(@display_type)
  return false if !@multiline_lines.nil? && @multiline_lines < 0
  return false if !@font_size.nil? && @font_size < 0
  return false if !@page.nil? && @page < 1
  alignment_validator = EnumAttributeValidator.new('String', ['left', 'center', 'right'])
  return false unless alignment_validator.valid?(@alignment)
  check_character_validator = EnumAttributeValidator.new('String', ['&#10003;', '&#10004;', '&#10006;', '&#10007;', '&#10008;'])
  return false unless check_character_validator.valid?(@check_character)
  return false if !@rotation.nil? && @rotation > 3.6E+2
  return false if !@rotation.nil? && @rotation < 0
  string_condition_type_validator = EnumAttributeValidator.new('String', ['equals', 'contains', 'starts_with', 'ends_with', 'regex'])
  return false unless string_condition_type_validator.valid?(@string_condition_type)
  return false if !@decimal_places.nil? && @decimal_places < 0
  return false if !@width.nil? && @width < 0
  return false if !@x.nil? && @x < 0
  return false if !@y.nil? && @y < 0
  number_condition_type_validator = EnumAttributeValidator.new('String', ['equals', 'range', 'gte', 'gt', 'lte', 'lt'])
  return false unless number_condition_type_validator.valid?(@number_condition_type)
  return false if !@opacity.nil? && @opacity > 1
  return false if !@opacity.nil? && @opacity < 0
  true
end