Method: WordsRubySdk::Paragraph#==

Defined in:
lib/words_ruby_sdk/models/paragraph.rb

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



101
102
103
104
105
106
107
# File 'lib/words_ruby_sdk/models/paragraph.rb', line 101

def ==(other)
  return true if self.equal?(other)
  self.class == other.class &&
      link == other.link &&
      node_id == other.node_id &&
      child_nodes == other.child_nodes
end