We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdd5983 commit 2eac3d6Copy full SHA for 2eac3d6
1 file changed
lib/gmail/message.rb
@@ -164,6 +164,10 @@ def inspect
164
"#<Gmail::Message#{'0x%04x' % (object_id << 1)} mailbox=#{@mailbox.name}#{' uid=' + @uid.to_s if @uid}#{' message_id=' + @msg_id.to_s if @msg_id}>"
165
end
166
167
+ def as_json
168
+ super(except: ["gmail"])
169
+ end
170
+
171
def method_missing(meth, *args, &block)
172
# Delegate rest directly to the message.
173
if envelope.respond_to?(meth)
0 commit comments