Method: DocuSign_Maestro::WorkflowDefinitionMetadata#initialize

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

#initialize(attributes = {}) ⇒ WorkflowDefinitionMetadata

Initializes the object

Parameters:

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

    Model attributes in the form of hash

[View source]

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
106
107
108
109
110
111
112
113
114
115
116
117
118
# File 'lib/docusign_maestro/models/workflow_definition_metadata.rb', line 73

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

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

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

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

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

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

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

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

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