We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb3cfb commit 3acba1cCopy full SHA for 3acba1c
lib/intercom/errors.rb
@@ -10,6 +10,17 @@ def initialize(message, context={})
10
@request_id = context[:request_id]
11
super(message)
12
end
13
+ def inspect
14
+ attributes = instance_variables.map do |var|
15
+ value = instance_variable_get(var).inspect
16
+ "#{var}=#{value}"
17
+ end
18
+ "##{self.class.name}:#{message} #{attributes.join(' ')}"
19
20
+ def to_hash
21
+ {message: message}
22
+ .merge(Hash[instance_variables.map{ |var| [var[1..-1], instance_variable_get(var)] }])
23
24
25
26
# Raised when the credentials you provide don't match a valid account on Intercom.
0 commit comments