Module: Teamlab::MailFolders
- Included in:
- Defined in:
- lib/teamlab/modules/mail/mail_folders.rb
Overview
Methods for working with mail folders
Instance Method Summary collapse
- #get_folder_change_date(folder_id) ⇒ Object
- #get_folders(options = {}) ⇒ Object
- #remove_all_messages_from_folder(folder_id) ⇒ Object
Instance Method Details
#get_folder_change_date(folder_id) ⇒ Object
10 11 12 |
# File 'lib/teamlab/modules/mail/mail_folders.rb', line 10 def get_folder_change_date(folder_id) @request.get(['folders', folder_id.to_s, 'modify_date']) end |
#get_folders(options = {}) ⇒ Object
6 7 8 |
# File 'lib/teamlab/modules/mail/mail_folders.rb', line 6 def get_folders( = {}) @request.get(%w[folders], ) end |
#remove_all_messages_from_folder(folder_id) ⇒ Object
14 15 16 |
# File 'lib/teamlab/modules/mail/mail_folders.rb', line 14 def (folder_id) @request.delete(['folders', folder_id.to_s, 'messages']) end |