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



201
202
203
204
205
206
207
208
209
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
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
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 201

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?(:'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.



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

def allow_tab_order
  @allow_tab_order
end

#allow_tab_order_metadataObject

Returns the value of attribute allow_tab_order_metadata.



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

def 
  
end

#approve_decline_tabs_enabledObject

Returns the value of attribute approve_decline_tabs_enabled.



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

def approve_decline_tabs_enabled
  @approve_decline_tabs_enabled
end

#approve_decline_tabs_metadataObject

Returns the value of attribute approve_decline_tabs_metadata.



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

def 
  
end

#calculated_fields_enabledObject

Returns the value of attribute calculated_fields_enabled.



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

def calculated_fields_enabled
  @calculated_fields_enabled
end

#calculated_fields_metadataObject

Returns the value of attribute calculated_fields_metadata.



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

def 
  
end

#checkbox_tabs_enabledObject

Returns the value of attribute checkbox_tabs_enabled.



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

def checkbox_tabs_enabled
  @checkbox_tabs_enabled
end

#checkbox_tabs_metadataObject

Returns the value of attribute checkbox_tabs_metadata.



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

def 
  
end

#data_field_regex_enabledObject

Returns the value of attribute data_field_regex_enabled.



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

def data_field_regex_enabled
  @data_field_regex_enabled
end

#data_field_regex_metadataObject

Returns the value of attribute data_field_regex_metadata.



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

def 
  
end

#data_field_size_enabledObject

Returns the value of attribute data_field_size_enabled.



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

def data_field_size_enabled
  @data_field_size_enabled
end

#data_field_size_metadataObject

Returns the value of attribute data_field_size_metadata.



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

def 
  
end

#first_last_email_tabs_enabledObject

Returns the value of attribute first_last_email_tabs_enabled.



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

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.



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

def 
  
end

#list_tabs_enabledObject

Returns the value of attribute list_tabs_enabled.



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

def list_tabs_enabled
  @list_tabs_enabled
end

#list_tabs_metadataObject

Returns the value of attribute list_tabs_metadata.



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

def 
  
end

#note_tabs_enabledObject

Returns the value of attribute note_tabs_enabled.



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

def note_tabs_enabled
  @note_tabs_enabled
end

#note_tabs_metadataObject

Returns the value of attribute note_tabs_metadata.



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

def 
  
end

#radio_tabs_enabledObject

Returns the value of attribute radio_tabs_enabled.



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

def radio_tabs_enabled
  @radio_tabs_enabled
end

#radio_tabs_metadataObject

Returns the value of attribute radio_tabs_metadata.



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

def 
  
end

#saving_custom_tabs_enabledObject

Returns the value of attribute saving_custom_tabs_enabled.



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

def saving_custom_tabs_enabled
  @saving_custom_tabs_enabled
end

#saving_custom_tabs_metadataObject

Returns the value of attribute saving_custom_tabs_metadata.



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

def 
  
end

#sender_to_change_tab_assignments_enabledObject

Returns the value of attribute sender_to_change_tab_assignments_enabled.



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

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.



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

def 
  
end

#shared_custom_tabs_enabledObject

Returns the value of attribute shared_custom_tabs_enabled.



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

def shared_custom_tabs_enabled
  @shared_custom_tabs_enabled
end

#shared_custom_tabs_metadataObject

Returns the value of attribute shared_custom_tabs_metadata.



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

def 
  
end

#tab_data_label_enabledObject

Returns the value of attribute tab_data_label_enabled.



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

def tab_data_label_enabled
  @tab_data_label_enabled
end

#tab_data_label_metadataObject

Returns the value of attribute tab_data_label_metadata.



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

def 
  
end

#tab_location_enabledObject

Returns the value of attribute tab_location_enabled.



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

def tab_location_enabled
  @tab_location_enabled
end

#tab_location_metadataObject

Returns the value of attribute tab_location_metadata.



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

def 
  
end

#tab_locking_enabledObject

Returns the value of attribute tab_locking_enabled.



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

def tab_locking_enabled
  @tab_locking_enabled
end

#tab_locking_metadataObject

Returns the value of attribute tab_locking_metadata.



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

def 
  
end

#tab_scale_enabledObject

Returns the value of attribute tab_scale_enabled.



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

def tab_scale_enabled
  @tab_scale_enabled
end

#tab_scale_metadataObject

Returns the value of attribute tab_scale_metadata.



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

def 
  
end

#tab_text_formatting_enabledObject

Returns the value of attribute tab_text_formatting_enabled.



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

def tab_text_formatting_enabled
  @tab_text_formatting_enabled
end

#tab_text_formatting_metadataObject

Returns the value of attribute tab_text_formatting_metadata.



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

def 
  
end

#text_tabs_enabledObject

Returns the value of attribute text_tabs_enabled.



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

def text_tabs_enabled
  @text_tabs_enabled
end

#text_tabs_metadataObject

Returns the value of attribute text_tabs_metadata.



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

def 
  
end

Class Method Details

.attribute_mapObject

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 112

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',
    :'checkbox_tabs_metadata' => :'checkboxTabsMetadata',
    :'data_field_regex_enabled' => :'dataFieldRegexEnabled',
    :'data_field_regex_metadata' => :'dataFieldRegexMetadata',
    :'data_field_size_enabled' => :'dataFieldSizeEnabled',
    :'data_field_size_metadata' => :'dataFieldSizeMetadata',
    :'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.



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 156

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',
    :'checkbox_tabs_metadata' => :'SettingsMetadata',
    :'data_field_regex_enabled' => :'String',
    :'data_field_regex_metadata' => :'SettingsMetadata',
    :'data_field_size_enabled' => :'String',
    :'data_field_size_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



375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 375

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



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

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



520
521
522
523
524
525
526
527
528
529
530
531
532
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 520

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



433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 433

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


420
421
422
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 420

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



426
427
428
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 426

def hash
  [allow_tab_order, , approve_decline_tabs_enabled, , calculated_fields_enabled, , checkbox_tabs_enabled, , data_field_regex_enabled, , data_field_size_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



362
363
364
365
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 362

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



500
501
502
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 500

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



506
507
508
509
510
511
512
513
514
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 506

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



494
495
496
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 494

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



369
370
371
# File 'lib/docusign_esign/models/tab_account_settings.rb', line 369

def valid?
  true
end