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



406
407
408
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 406

def bcc
  @bcc
end

#ccObject

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_toObject

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_headersObject

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_emailObject

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_nameObject

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

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



415
416
417
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 415

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.



418
419
420
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 418

def message_id
  @message_id
end

#priorityObject

Define the email priority



410
411
412
# File 'lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb', line 410

def priority
  @priority
end

#reply_toObject

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

#toObject

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.message_id = 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