Method: EasyPost::Error#==

Defined in:
lib/easypost/error.rb

#==(other) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/easypost/error.rb', line 25

def ==(other)
  other.is_a?(Error) &&
    message == other.message &&
    status == other.status &&
    code == other.code &&
    errors == other.errors
end