Class: Kaltura::KalturaMailNotificationObjectTask

Inherits:
KalturaObjectTask show all
Defined in:
lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectTask

#stop_processing_on_error, #type

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

The footer of the message to send in the notification mail



265
266
267
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 265

def footer
  @footer
end

The basic link for the KMC site



267
268
269
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 267

def link
  @link
end

#mail_toObject

The mail to send the notification to



257
258
259
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 257

def mail_to
  @mail_to
end

#messageObject

The message to send in the notification mail



263
264
265
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 263

def message
  @message
end

#send_to_usersObject

Send the mail to each user



269
270
271
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 269

def send_to_users
  @send_to_users
end

#senderObject

The sender in the mail



259
260
261
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 259

def sender
  @sender
end

#subjectObject

The subject of the entry



261
262
263
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 261

def subject
  @subject
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 275

def from_xml(xml_element)
	super
	if xml_element.elements['mailTo'] != nil
		self.mail_to = xml_element.elements['mailTo'].text
	end
	if xml_element.elements['sender'] != nil
		self.sender = xml_element.elements['sender'].text
	end
	if xml_element.elements['subject'] != nil
		self.subject = xml_element.elements['subject'].text
	end
	if xml_element.elements['message'] != nil
		self.message = xml_element.elements['message'].text
	end
	if xml_element.elements['footer'] != nil
		self.footer = xml_element.elements['footer'].text
	end
	if xml_element.elements['link'] != nil
		self.link = xml_element.elements['link'].text
	end
	if xml_element.elements['sendToUsers'] != nil
		self.send_to_users = xml_element.elements['sendToUsers'].text
	end
end