Module: Teamlab::MailImages

Included in:
Mail
Defined in:
lib/teamlab/modules/mail/mail_images.rb

Overview

Methods for working with mail images

Instance Method Summary collapse

Instance Method Details

#add_trusted_address(address) ⇒ Object



10
11
12
# File 'lib/teamlab/modules/mail/mail_images.rb', line 10

def add_trusted_address(address)
  @request.post(%w[display_images addresses], addres: address)
end

#get_trusted_addressesObject



6
7
8
# File 'lib/teamlab/modules/mail/mail_images.rb', line 6

def get_trusted_addresses
  @request.get(%w[display_images addresses])
end

#remove_from_trusted_addresses(address) ⇒ Object



14
15
16
# File 'lib/teamlab/modules/mail/mail_images.rb', line 14

def remove_from_trusted_addresses(address)
  @request.delete(%w[display_images addresses], addres: address)
end