Method: AsposeWordsCloud::CompareOptions#initialize

Defined in:
lib/aspose_words_cloud/models/compare_options.rb

#initialize(attributes = {}) ⇒ CompareOptions

Initializes the object

Parameters:

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

    Model attributes in the form of hash



118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/aspose_words_cloud/models/compare_options.rb', line 118

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

  if attributes.key?(:'IgnoreCaseChanges')
    self.ignore_case_changes = attributes[:'IgnoreCaseChanges']
  end

  if attributes.key?(:'IgnoreComments')
    self.ignore_comments = attributes[:'IgnoreComments']
  end

  if attributes.key?(:'IgnoreFields')
    self.ignore_fields = attributes[:'IgnoreFields']
  end

  if attributes.key?(:'IgnoreFootnotes')
    self.ignore_footnotes = attributes[:'IgnoreFootnotes']
  end

  if attributes.key?(:'IgnoreFormatting')
    self.ignore_formatting = attributes[:'IgnoreFormatting']
  end

  if attributes.key?(:'IgnoreHeadersAndFooters')
    self.ignore_headers_and_footers = attributes[:'IgnoreHeadersAndFooters']
  end

  if attributes.key?(:'IgnoreTables')
    self.ignore_tables = attributes[:'IgnoreTables']
  end

  if attributes.key?(:'IgnoreTextboxes')
    self.ignore_textboxes = attributes[:'IgnoreTextboxes']
  end

  if attributes.key?(:'Target')
    self.target = attributes[:'Target']
  end
end