Method: WordsRubySdk::Border#==

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

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



188
189
190
191
192
193
194
195
196
197
198
# File 'lib/words_ruby_sdk/models/border.rb', line 188

def ==(other)
  return true if self.equal?(other)
  self.class == other.class &&
      link == other.link &&
      border_type == other.border_type &&
      color == other.color &&
      distance_from_text == other.distance_from_text &&
      line_style == other.line_style &&
      line_width == other.line_width &&
      shadow == other.shadow
end