Module: Gmail::Base::Trash::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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



15
16
17
18
# File 'lib/gmail/base/trash.rb', line 15

def trash(id, opts={})
  response = Gmail.request(base_method.send("trash"),{id: id})
  Util.convert_to_gmail_object(response, class_name.downcase)
end

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



20
21
22
23
# File 'lib/gmail/base/trash.rb', line 20

def untrash(id, opts={})
  response = Gmail.request(base_method.send("untrash"),{id: id})
  Util.convert_to_gmail_object(response, class_name.downcase)
end