Class: DocuSign_eSign::TabAccountSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/docusign_esign/models/tab_account_settings.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ TabAccountSettings

Initializes the object

Parameters:

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

    Model attributes in the form of hash


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
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
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 211

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#allow_tab_orderObject

Returns the value of attribute allow_tab_order


18
19
20
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 18

def allow_tab_order
  @allow_tab_order
end

#allow_tab_order_metadataObject

Returns the value of attribute allow_tab_order_metadata


20
21
22
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 20

def 
  @allow_tab_order_metadata
end

#approve_decline_tabs_enabledObject

Returns the value of attribute approve_decline_tabs_enabled


23
24
25
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 23

def approve_decline_tabs_enabled
  @approve_decline_tabs_enabled
end

#approve_decline_tabs_metadataObject

Returns the value of attribute approve_decline_tabs_metadata


25
26
27
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 25

def 
  @approve_decline_tabs_metadata
end

#calculated_fields_enabledObject

Returns the value of attribute calculated_fields_enabled


28
29
30
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 28

def calculated_fields_enabled
  @calculated_fields_enabled
end

#calculated_fields_metadataObject

Returns the value of attribute calculated_fields_metadata


30
31
32
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 30

def 
  @calculated_fields_metadata
end

#check_box_tabs_metadataObject

Returns the value of attribute check_box_tabs_metadata


35
36
37
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 35

def 
  @check_box_tabs_metadata
end

#checkbox_tabs_enabledObject

Returns the value of attribute checkbox_tabs_enabled


33
34
35
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 33

def checkbox_tabs_enabled
  @checkbox_tabs_enabled
end

#data_field_regex_enabledObject

Returns the value of attribute data_field_regex_enabled


38
39
40
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 38

def data_field_regex_enabled
  @data_field_regex_enabled
end

#data_field_regex_metadataObject

Returns the value of attribute data_field_regex_metadata


40
41
42
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 40

def 
  @data_field_regex_metadata
end

#data_field_size_enabledObject

Returns the value of attribute data_field_size_enabled


43
44
45
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 43

def data_field_size_enabled
  @data_field_size_enabled
end

#data_field_size_metadataObject

Returns the value of attribute data_field_size_metadata


45
46
47
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 45

def 
  @data_field_size_metadata
end

#draw_tabs_enabledObject

Returns the value of attribute draw_tabs_enabled


48
49
50
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 48

def draw_tabs_enabled
  @draw_tabs_enabled
end

#draw_tabs_metadataObject

Returns the value of attribute draw_tabs_metadata


50
51
52
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 50

def 
  @draw_tabs_metadata
end

#first_last_email_tabs_enabledObject

Returns the value of attribute first_last_email_tabs_enabled


53
54
55
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 53

def first_last_email_tabs_enabled
  @first_last_email_tabs_enabled
end

#first_last_email_tabs_metadataObject

Returns the value of attribute first_last_email_tabs_metadata


55
56
57
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 55

def 
  @first_last_email_tabs_metadata
end

#list_tabs_enabledObject

Returns the value of attribute list_tabs_enabled


58
59
60
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 58

def list_tabs_enabled
  @list_tabs_enabled
end

#list_tabs_metadataObject

Returns the value of attribute list_tabs_metadata


60
61
62
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 60

def 
  @list_tabs_metadata
end

#note_tabs_enabledObject

Returns the value of attribute note_tabs_enabled


63
64
65
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 63

def note_tabs_enabled
  @note_tabs_enabled
end

#note_tabs_metadataObject

Returns the value of attribute note_tabs_metadata


65
66
67
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 65

def 
  @note_tabs_metadata
end

#radio_tabs_enabledObject

Returns the value of attribute radio_tabs_enabled


68
69
70
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 68

def radio_tabs_enabled
  @radio_tabs_enabled
end

#radio_tabs_metadataObject

Returns the value of attribute radio_tabs_metadata


70
71
72
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 70

def 
  @radio_tabs_metadata
end

#saving_custom_tabs_enabledObject

Returns the value of attribute saving_custom_tabs_enabled


73
74
75
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 73

def saving_custom_tabs_enabled
  @saving_custom_tabs_enabled
end

#saving_custom_tabs_metadataObject

Returns the value of attribute saving_custom_tabs_metadata


75
76
77
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 75

def 
  @saving_custom_tabs_metadata
end

#sender_to_change_tab_assignments_enabledObject

Returns the value of attribute sender_to_change_tab_assignments_enabled


78
79
80
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 78

def sender_to_change_tab_assignments_enabled
  @sender_to_change_tab_assignments_enabled
end

#sender_to_change_tab_assignments_metadataObject

Returns the value of attribute sender_to_change_tab_assignments_metadata


80
81
82
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 80

def 
  @sender_to_change_tab_assignments_metadata
end

#shared_custom_tabs_enabledObject

Returns the value of attribute shared_custom_tabs_enabled


83
84
85
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 83

def shared_custom_tabs_enabled
  @shared_custom_tabs_enabled
end

#shared_custom_tabs_metadataObject

Returns the value of attribute shared_custom_tabs_metadata


85
86
87
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 85

def 
  @shared_custom_tabs_metadata
end

#tab_data_label_enabledObject

Returns the value of attribute tab_data_label_enabled


88
89
90
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 88

def tab_data_label_enabled
  @tab_data_label_enabled
end

#tab_data_label_metadataObject

Returns the value of attribute tab_data_label_metadata


90
91
92
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 90

def 
  @tab_data_label_metadata
end

#tab_location_enabledObject

Returns the value of attribute tab_location_enabled


93
94
95
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 93

def tab_location_enabled
  @tab_location_enabled
end

#tab_location_metadataObject

Returns the value of attribute tab_location_metadata


95
96
97
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 95

def 
  @tab_location_metadata
end

#tab_locking_enabledObject

Returns the value of attribute tab_locking_enabled


98
99
100
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 98

def tab_locking_enabled
  @tab_locking_enabled
end

#tab_locking_metadataObject

Returns the value of attribute tab_locking_metadata


100
101
102
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 100

def 
  @tab_locking_metadata
end

#tab_scale_enabledObject

Returns the value of attribute tab_scale_enabled


103
104
105
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 103

def tab_scale_enabled
  @tab_scale_enabled
end

#tab_scale_metadataObject

Returns the value of attribute tab_scale_metadata


105
106
107
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 105

def 
  @tab_scale_metadata
end

#tab_text_formatting_enabledObject

Returns the value of attribute tab_text_formatting_enabled


108
109
110
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 108

def tab_text_formatting_enabled
  @tab_text_formatting_enabled
end

#tab_text_formatting_metadataObject

Returns the value of attribute tab_text_formatting_metadata


110
111
112
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 110

def 
  @tab_text_formatting_metadata
end

#text_tabs_enabledObject

Returns the value of attribute text_tabs_enabled


113
114
115
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 113

def text_tabs_enabled
  @text_tabs_enabled
end

#text_tabs_metadataObject

Returns the value of attribute text_tabs_metadata


115
116
117
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 115

def 
  @text_tabs_metadata
end

Class Method Details

.attribute_mapObject

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


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
156
157
158
159
160
161
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 118

def self.attribute_map
  {
    :'allow_tab_order' => :'allowTabOrder',
    :'allow_tab_order_metadata' => :'allowTabOrderMetadata',
    :'approve_decline_tabs_enabled' => :'approveDeclineTabsEnabled',
    :'approve_decline_tabs_metadata' => :'approveDeclineTabsMetadata',
    :'calculated_fields_enabled' => :'calculatedFieldsEnabled',
    :'calculated_fields_metadata' => :'calculatedFieldsMetadata',
    :'checkbox_tabs_enabled' => :'checkboxTabsEnabled',
    :'check_box_tabs_metadata' => :'checkBoxTabsMetadata',
    :'data_field_regex_enabled' => :'dataFieldRegexEnabled',
    :'data_field_regex_metadata' => :'dataFieldRegexMetadata',
    :'data_field_size_enabled' => :'dataFieldSizeEnabled',
    :'data_field_size_metadata' => :'dataFieldSizeMetadata',
    :'draw_tabs_enabled' => :'drawTabsEnabled',
    :'draw_tabs_metadata' => :'drawTabsMetadata',
    :'first_last_email_tabs_enabled' => :'firstLastEmailTabsEnabled',
    :'first_last_email_tabs_metadata' => :'firstLastEmailTabsMetadata',
    :'list_tabs_enabled' => :'listTabsEnabled',
    :'list_tabs_metadata' => :'listTabsMetadata',
    :'note_tabs_enabled' => :'noteTabsEnabled',
    :'note_tabs_metadata' => :'noteTabsMetadata',
    :'radio_tabs_enabled' => :'radioTabsEnabled',
    :'radio_tabs_metadata' => :'radioTabsMetadata',
    :'saving_custom_tabs_enabled' => :'savingCustomTabsEnabled',
    :'saving_custom_tabs_metadata' => :'savingCustomTabsMetadata',
    :'sender_to_change_tab_assignments_enabled' => :'senderToChangeTabAssignmentsEnabled',
    :'sender_to_change_tab_assignments_metadata' => :'senderToChangeTabAssignmentsMetadata',
    :'shared_custom_tabs_enabled' => :'sharedCustomTabsEnabled',
    :'shared_custom_tabs_metadata' => :'sharedCustomTabsMetadata',
    :'tab_data_label_enabled' => :'tabDataLabelEnabled',
    :'tab_data_label_metadata' => :'tabDataLabelMetadata',
    :'tab_location_enabled' => :'tabLocationEnabled',
    :'tab_location_metadata' => :'tabLocationMetadata',
    :'tab_locking_enabled' => :'tabLockingEnabled',
    :'tab_locking_metadata' => :'tabLockingMetadata',
    :'tab_scale_enabled' => :'tabScaleEnabled',
    :'tab_scale_metadata' => :'tabScaleMetadata',
    :'tab_text_formatting_enabled' => :'tabTextFormattingEnabled',
    :'tab_text_formatting_metadata' => :'tabTextFormattingMetadata',
    :'text_tabs_enabled' => :'textTabsEnabled',
    :'text_tabs_metadata' => :'textTabsMetadata'
  }
end

.swagger_typesObject

Attribute type mapping.


164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 164

def self.swagger_types
  {
    :'allow_tab_order' => :'String',
    :'allow_tab_order_metadata' => :'SettingsMetadata',
    :'approve_decline_tabs_enabled' => :'String',
    :'approve_decline_tabs_metadata' => :'SettingsMetadata',
    :'calculated_fields_enabled' => :'String',
    :'calculated_fields_metadata' => :'SettingsMetadata',
    :'checkbox_tabs_enabled' => :'String',
    :'check_box_tabs_metadata' => :'SettingsMetadata',
    :'data_field_regex_enabled' => :'String',
    :'data_field_regex_metadata' => :'SettingsMetadata',
    :'data_field_size_enabled' => :'String',
    :'data_field_size_metadata' => :'SettingsMetadata',
    :'draw_tabs_enabled' => :'String',
    :'draw_tabs_metadata' => :'SettingsMetadata',
    :'first_last_email_tabs_enabled' => :'String',
    :'first_last_email_tabs_metadata' => :'SettingsMetadata',
    :'list_tabs_enabled' => :'String',
    :'list_tabs_metadata' => :'SettingsMetadata',
    :'note_tabs_enabled' => :'String',
    :'note_tabs_metadata' => :'SettingsMetadata',
    :'radio_tabs_enabled' => :'String',
    :'radio_tabs_metadata' => :'SettingsMetadata',
    :'saving_custom_tabs_enabled' => :'String',
    :'saving_custom_tabs_metadata' => :'SettingsMetadata',
    :'sender_to_change_tab_assignments_enabled' => :'String',
    :'sender_to_change_tab_assignments_metadata' => :'SettingsMetadata',
    :'shared_custom_tabs_enabled' => :'String',
    :'shared_custom_tabs_metadata' => :'SettingsMetadata',
    :'tab_data_label_enabled' => :'String',
    :'tab_data_label_metadata' => :'SettingsMetadata',
    :'tab_location_enabled' => :'String',
    :'tab_location_metadata' => :'SettingsMetadata',
    :'tab_locking_enabled' => :'String',
    :'tab_locking_metadata' => :'SettingsMetadata',
    :'tab_scale_enabled' => :'String',
    :'tab_scale_metadata' => :'SettingsMetadata',
    :'tab_text_formatting_enabled' => :'String',
    :'tab_text_formatting_metadata' => :'SettingsMetadata',
    :'text_tabs_enabled' => :'String',
    :'text_tabs_metadata' => :'SettingsMetadata'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared


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
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 393

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      allow_tab_order == o.allow_tab_order &&
       == o. &&
      approve_decline_tabs_enabled == o.approve_decline_tabs_enabled &&
       == o. &&
      calculated_fields_enabled == o.calculated_fields_enabled &&
       == o. &&
      checkbox_tabs_enabled == o.checkbox_tabs_enabled &&
       == o. &&
      data_field_regex_enabled == o.data_field_regex_enabled &&
       == o. &&
      data_field_size_enabled == o.data_field_size_enabled &&
       == o. &&
      draw_tabs_enabled == o.draw_tabs_enabled &&
       == o. &&
      first_last_email_tabs_enabled == o.first_last_email_tabs_enabled &&
       == o. &&
      list_tabs_enabled == o.list_tabs_enabled &&
       == o. &&
      note_tabs_enabled == o.note_tabs_enabled &&
       == o. &&
      radio_tabs_enabled == o.radio_tabs_enabled &&
       == o. &&
      saving_custom_tabs_enabled == o.saving_custom_tabs_enabled &&
       == o. &&
      sender_to_change_tab_assignments_enabled == o.sender_to_change_tab_assignments_enabled &&
       == o. &&
      shared_custom_tabs_enabled == o.shared_custom_tabs_enabled &&
       == o. &&
      tab_data_label_enabled == o.tab_data_label_enabled &&
       == o. &&
      tab_location_enabled == o.tab_location_enabled &&
       == o. &&
      tab_locking_enabled == o.tab_locking_enabled &&
       == o. &&
      tab_scale_enabled == o.tab_scale_enabled &&
       == o. &&
      tab_text_formatting_enabled == o.tab_text_formatting_enabled &&
       == o. &&
      text_tabs_enabled == o.text_tabs_enabled &&
       == o.
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


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
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 474

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


540
541
542
543
544
545
546
547
548
549
550
551
552
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 540

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


453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 453

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 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

440
441
442
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 440

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code


446
447
448
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 446

def hash
  [allow_tab_order, , approve_decline_tabs_enabled, , calculated_fields_enabled, , checkbox_tabs_enabled, , data_field_regex_enabled, , data_field_size_enabled, , draw_tabs_enabled, , first_last_email_tabs_enabled, , list_tabs_enabled, , note_tabs_enabled, , radio_tabs_enabled, , saving_custom_tabs_enabled, , sender_to_change_tab_assignments_enabled, , shared_custom_tabs_enabled, , tab_data_label_enabled, , tab_location_enabled, , tab_locking_enabled, , tab_scale_enabled, , tab_text_formatting_enabled, , text_tabs_enabled, ].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons


380
381
382
383
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 380

def list_invalid_properties
  invalid_properties = Array.new
  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


520
521
522
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 520

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


526
527
528
529
530
531
532
533
534
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 526

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


514
515
516
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 514

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


387
388
389
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 387

def valid?
  true
end