Class: Kaltura::KalturaEmailNotificationDispatchJobData

Inherits:
KalturaEventNotificationDispatchJobData show all
Defined in:
lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaEventNotificationDispatchJobData

#content_parameters, #template_id

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#bccObject

Email bcc emails and names, key is mail address and value is the name



333
334
335
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 333

def bcc
  @bcc
end

#ccObject

Email cc emails and names, key is mail address and value is the name



330
331
332
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 330

def cc
  @cc
end

#confirm_reading_toObject

Email address that a reading confirmation will be sent to



342
343
344
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 342

def confirm_reading_to
  @confirm_reading_to
end

#custom_headersObject

Adds a e-mail custom header



353
354
355
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 353

def custom_headers
  @custom_headers
end

#from_emailObject

Define the email sender email



321
322
323
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 321

def from_email
  @from_email
end

#from_nameObject

Define the email sender name



324
325
326
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 324

def from_name
  @from_name
end

#hostnameObject

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’.



346
347
348
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 346

def hostname
  @hostname
end

#message_idObject

Sets the message ID to be used in the Message-Id header. If empty, a unique id will be generated.



350
351
352
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 350

def message_id
  @message_id
end

#priorityObject

Define the email priority



339
340
341
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 339

def priority
  @priority
end

#reply_toObject

Email addresses that a replies should be sent to, key is mail address and value is the name



336
337
338
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 336

def reply_to
  @reply_to
end

#toObject

Email recipient emails and names, key is mail address and value is the name



327
328
329
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 327

def to
  @to
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



359
360
361
362
363
364
365
366
367
368
369
370
371
372
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 359

def from_xml(xml_element)
  super
  self.from_email = xml_element.elements['fromEmail'].text
  self.from_name = xml_element.elements['fromName'].text
  self.to = KalturaClientBase.object_from_xml(xml_element.elements['to'], 'KalturaEmailNotificationRecipientJobData')
  self.cc = KalturaClientBase.object_from_xml(xml_element.elements['cc'], 'KalturaEmailNotificationRecipientJobData')
  self.bcc = KalturaClientBase.object_from_xml(xml_element.elements['bcc'], 'KalturaEmailNotificationRecipientJobData')
  self.reply_to = KalturaClientBase.object_from_xml(xml_element.elements['replyTo'], 'KalturaEmailNotificationRecipientJobData')
  self.priority = xml_element.elements['priority'].text
  self.confirm_reading_to = xml_element.elements['confirmReadingTo'].text
  self.hostname = xml_element.elements['hostname'].text
  self.message_id = xml_element.elements['messageID'].text
  self.custom_headers = KalturaClientBase.object_from_xml(xml_element.elements['customHeaders'], 'KalturaKeyValue')
end