Method: DocuSign_Maestro::DSTransformationStep#initialize

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

#initialize(attributes = {}) ⇒ DSTransformationStep

Initializes the object

Parameters:

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

    Model attributes in the form of hash


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
# File 'lib/docusign_maestro/models/ds_transformation_step.rb', line 61

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

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

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

  if attributes.has_key?(:'input')
    if (value = attributes[:'input']).is_a?(Hash)
      self.input = value
    end
  end

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

  if attributes.has_key?(:'output')
    if (value = attributes[:'output']).is_a?(Hash)
      self.output = value
    end
  end

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