Method: DocuSign_Maestro::DSSignStep#initialize

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

#initialize(attributes = {}) ⇒ DSSignStep

Initializes the object

Parameters:

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

    Model attributes in the form of hash

[View source]

55
56
57
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
# File 'lib/docusign_maestro/models/ds_sign_step.rb', line 55

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

  if attributes.has_key?(:'input')
    self.input = attributes[:'input']
  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