Module: Teamlab::MailSettings

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

Overview

Methods for working with mail settings

Instance Method Summary collapse

Instance Method Details

#always_display_imagesTrue, False

Returns get value of flag for dispay images.

Returns:

  • (True, False)

    get value of flag for dispay images



13
14
15
# File 'lib/teamlab/modules/mail/mail_settings.rb', line 13

def always_display_images
  @request.get(%w[settings alwaysDisplayImages])
end

#set_always_display_images(enabled = true) ⇒ Void

Parameters:

  • enabled (True, False) (defaults to: true)

    set value of always display image

Returns:

  • (Void)


8
9
10
# File 'lib/teamlab/modules/mail/mail_settings.rb', line 8

def set_always_display_images(enabled = true)
  @request.put(%w[settings alwaysDisplayImages], enabled: enabled.to_s)
end