Method: DocuSign_Maestro::WorkflowStepHistory#initialize

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

#initialize(attributes = {}) ⇒ WorkflowStepHistory

Initializes the object

Parameters:

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

    Model attributes in the form of hash

[View source]

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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/docusign_maestro/models/workflow_step_history.rb', line 79

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

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

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

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

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

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

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

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

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

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

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