Class: Teamlab::Mail

Inherits:
Object
  • Object
show all
Includes:
MailAccounts, MailAlerts, MailContacts, MailConversations, MailFolders, MailHelpCenter, MailImages, MailMessages, MailSettings, MailSignature, MailTags
Defined in:
lib/teamlab/modules/mail.rb

Instance Method Summary collapse

Methods included from MailTags

#create_tag, #delete_tag, #get_tag_list, #remove_tag_from_messages, #set_tag_to_messages, #update_tag

Methods included from MailSettings

#always_display_images, #set_always_display_images

Methods included from MailSignature

#get_meail_signature, #update_signature

Methods included from MailMessages

#attach_teamlab_document, #delete_attachment_from_message, #export_all_message_attachments_to_my_docs, #export_attachments_to_my_docs, #export_mail_to_crm_relations_history, #get_filtered_messages, #get_message, #get_message_modify_date, #get_message_template, #get_previous_or_next_message_id, #move_messages_to_folder, #remove_messages, #restore_message_to_folders, #save_message, #send_message, #set_message_crm_status, #set_message_status

Methods included from MailImages

#add_trusted_address, #get_trusted_addresses, #remove_from_trusted_addresses

Methods included from MailHelpCenter

#get_html_of_help_center

Methods included from MailFolders

#get_folder_change_date, #get_folders, #remove_all_messages_from_folder

Methods included from MailConversations

#add_tag_to_conversations, #chain_crm_linked_by_message?, #get_filtered_conversations, #get_messages_linked_into_one_chain, #get_previous_or_next_conversation_id, #mark_conversation_as_crm_linked, #move_conversations_to_folder, #remove_conversations, #remove_tag_from_conversations, #restore_conversations_to_folders, #set_conversations_status, #unmark_conversation_link_with_crm

Methods included from MailContacts

#get_contact_list_for_auto_complete, #get_crm_linked_entities

Methods included from MailAlerts

#delete_alert_by_id, #get_alerts_list

Methods included from MailAccounts

#create_account_by_email, #create_account_with_custom_mail_service, #create_oauth_account, #delete_account, #get_account_by_email, #get_account_list, #get_default_account_settings, #set_account_state, #set_account_state_by_mailbox, #set_default_account, #update_account

Constructor Details

#initialize(config = nil) ⇒ Mail

Returns a new instance of Mail.



28
29
30
# File 'lib/teamlab/modules/mail.rb', line 28

def initialize(config = nil)
  @request = Teamlab::Request.new(config, 'mail')
end

Instance Method Details

#operationsTeamlab::Response

Returns all Mail running operations (only complex)

Returns:



33
34
35
# File 'lib/teamlab/modules/mail.rb', line 33

def operations
  @request.get(%w[operations])
end