Class: Kaltura::KalturaEmailNotificationDispatchJobData
- Inherits:
-
KalturaEventNotificationDispatchJobData
- Object
- KalturaObjectBase
- KalturaJobData
- KalturaEventNotificationDispatchJobData
- Kaltura::KalturaEmailNotificationDispatchJobData
- Defined in:
- lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb
Instance Attribute Summary collapse
-
#bcc ⇒ Object
Email bcc emails and names, key is mail address and value is the name.
-
#cc ⇒ Object
Email cc emails and names, key is mail address and value is the name.
-
#confirm_reading_to ⇒ Object
Email address that a reading confirmation will be sent to.
-
#custom_headers ⇒ Object
Adds a e-mail custom header.
-
#from_email ⇒ Object
Define the email sender email.
-
#from_name ⇒ Object
Define the email sender name.
-
#hostname ⇒ Object
Hostname to use in Message-Id and Received headers and as default HELO string.
-
#message_id ⇒ Object
Sets the message ID to be used in the Message-Id header.
-
#priority ⇒ Object
Define the email priority.
-
#reply_to ⇒ Object
Email addresses that a replies should be sent to, key is mail address and value is the name.
-
#to ⇒ Object
Email recipient emails and names, key is mail address and value is the name.
Attributes inherited from KalturaEventNotificationDispatchJobData
#content_parameters, #template_id
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#bcc ⇒ Object
Email bcc emails and names, key is mail address and value is the name
406 407 408 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 406 def bcc @bcc end |
#cc ⇒ Object
Email cc emails and names, key is mail address and value is the name
404 405 406 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 404 def cc @cc end |
#confirm_reading_to ⇒ Object
Email address that a reading confirmation will be sent to
412 413 414 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 412 def confirm_reading_to @confirm_reading_to end |
#custom_headers ⇒ Object
Adds a e-mail custom header
420 421 422 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 420 def custom_headers @custom_headers end |
#from_email ⇒ Object
Define the email sender email
398 399 400 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 398 def from_email @from_email end |
#from_name ⇒ Object
Define the email sender name
400 401 402 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 400 def from_name @from_name end |
#hostname ⇒ Object
Hostname to use in Message-Id and Received headers and as default HELO string. If empty, the value returned by SERVER_NAME is used or ‘localhost.localdomain’.
415 416 417 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 415 def hostname @hostname end |
#message_id ⇒ Object
Sets the message ID to be used in the Message-Id header. If empty, a unique id will be generated.
418 419 420 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 418 def @message_id end |
#priority ⇒ Object
Define the email priority
410 411 412 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 410 def priority @priority end |
#reply_to ⇒ Object
Email addresses that a replies should be sent to, key is mail address and value is the name
408 409 410 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 408 def reply_to @reply_to end |
#to ⇒ Object
Email recipient emails and names, key is mail address and value is the name
402 403 404 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 402 def to @to end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 426 def from_xml(xml_element) super if xml_element.elements['fromEmail'] != nil self.from_email = xml_element.elements['fromEmail'].text end if xml_element.elements['fromName'] != nil self.from_name = xml_element.elements['fromName'].text end if xml_element.elements['to'] != nil self.to = KalturaClientBase.object_from_xml(xml_element.elements['to'], 'KalturaEmailNotificationRecipientJobData') end if xml_element.elements['cc'] != nil self.cc = KalturaClientBase.object_from_xml(xml_element.elements['cc'], 'KalturaEmailNotificationRecipientJobData') end if xml_element.elements['bcc'] != nil self.bcc = KalturaClientBase.object_from_xml(xml_element.elements['bcc'], 'KalturaEmailNotificationRecipientJobData') end if xml_element.elements['replyTo'] != nil self.reply_to = KalturaClientBase.object_from_xml(xml_element.elements['replyTo'], 'KalturaEmailNotificationRecipientJobData') end if xml_element.elements['priority'] != nil self.priority = xml_element.elements['priority'].text end if xml_element.elements['confirmReadingTo'] != nil self.confirm_reading_to = xml_element.elements['confirmReadingTo'].text end if xml_element.elements['hostname'] != nil self.hostname = xml_element.elements['hostname'].text end if xml_element.elements['messageID'] != nil self. = xml_element.elements['messageID'].text end if xml_element.elements['customHeaders'] != nil self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue') end end |