Class: Kaltura::KalturaMailNotificationObjectTask
- Inherits:
-
KalturaObjectTask
- Object
- KalturaObjectBase
- KalturaObjectTask
- Kaltura::KalturaMailNotificationObjectTask
- Defined in:
- lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb
Instance Attribute Summary collapse
-
#footer ⇒ Object
The footer of the message to send in the notification mail.
-
#link ⇒ Object
The basic link for the KMC site.
-
#mail_to ⇒ Object
The mail to send the notification to.
-
#message ⇒ Object
The message to send in the notification mail.
-
#send_to_users ⇒ Object
Send the mail to each user.
-
#sender ⇒ Object
The sender in the mail.
-
#subject ⇒ Object
The subject of the entry.
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
Instance Attribute Details
#footer ⇒ Object
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 end |
#link ⇒ Object
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_to ⇒ Object
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 |
#message ⇒ Object
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 end |
#send_to_users ⇒ Object
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 |
#sender ⇒ Object
The sender in the mail
259 260 261 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 259 def sender @sender end |
#subject ⇒ Object
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. = xml_element.elements['message'].text end if xml_element.elements['footer'] != nil self. = 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 |