Method: DocuSign_Maestro::ESignTabsRecord#initialize

Defined in:
lib/docusign_maestro/models/e_sign_tabs_record.rb

#initialize(attributes = {}) ⇒ ESignTabsRecord

Initializes the object

Parameters:

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

    Model attributes in the form of hash

[View source]

58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/docusign_maestro/models/e_sign_tabs_record.rb', line 58

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?(:'dateSignedTabs')
    if (value = attributes[:'dateSignedTabs']).is_a?(Array)
      self.date_signed_tabs = value
    end
  end

  if attributes.has_key?(:'emailAddressTabs')
    if (value = attributes[:'emailAddressTabs']).is_a?(Array)
      self.email_address_tabs = value
    end
  end

  if attributes.has_key?(:'firstNameTabs')
    if (value = attributes[:'firstNameTabs']).is_a?(Array)
      self.first_name_tabs = value
    end
  end

  if attributes.has_key?(:'fullNameTabs')
    if (value = attributes[:'fullNameTabs']).is_a?(Array)
      self.full_name_tabs = value
    end
  end

  if attributes.has_key?(:'lastNameTabs')
    if (value = attributes[:'lastNameTabs']).is_a?(Array)
      self.last_name_tabs = value
    end
  end

  if attributes.has_key?(:'signHereTabs')
    if (value = attributes[:'signHereTabs']).is_a?(Array)
      self.sign_here_tabs = value
    end
  end

  if attributes.has_key?(:'textTabs')
    if (value = attributes[:'textTabs']).is_a?(Array)
      self.text_tabs = value
    end
  end
end