Module: Gmail::Base::Delete::ClassMethods

Defined in:
lib/gmail/base/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(id, opts = {}) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/gmail/base/delete.rb', line 14

def delete(id, opts={})
 response = Gmail.request(base_method.send("delete"),{id: id})
 if response == ""
   true
 else
   false
 end
end