Class: Kaltura::KalturaClientNotification

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_types.rb

Overview

Client notification object to hold the notification url and the data when sending client side notifications

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#dataObject

The serialized notification data to send



2871
2872
2873
# File 'lib/kaltura_types.rb', line 2871

def data
  @data
end

#urlObject

The URL where the notification should be sent to



2869
2870
2871
# File 'lib/kaltura_types.rb', line 2869

def url
  @url
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



2874
2875
2876
2877
2878
2879
2880
2881
2882
# File 'lib/kaltura_types.rb', line 2874

def from_xml(xml_element)
  super
  if xml_element.elements['url'] != nil
    self.url = xml_element.elements['url'].text
  end
  if xml_element.elements['data'] != nil
    self.data = xml_element.elements['data'].text
  end
end