Module: Teamlab::MailImages
- Included in:
- Defined in:
- lib/teamlab/modules/mail/mail_images.rb
Overview
Methods for working with mail images
Instance Method Summary collapse
- #add_trusted_address(address) ⇒ Object
- #get_trusted_addresses ⇒ Object
- #remove_from_trusted_addresses(address) ⇒ Object
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_addresses ⇒ Object
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 |