Class: Kaltura::KalturaNotificationJobData

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

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

Returns the value of attribute data.



14515
14516
14517
# File 'lib/kaltura_types.rb', line 14515

def data
  @data
end

#notification_resultObject

Returns the value of attribute notification_result.



14517
14518
14519
# File 'lib/kaltura_types.rb', line 14517

def notification_result
  @notification_result
end

#number_of_attemptsObject

Returns the value of attribute number_of_attempts.



14516
14517
14518
# File 'lib/kaltura_types.rb', line 14516

def number_of_attempts
  @number_of_attempts
end

#obj_typeObject

Returns the value of attribute obj_type.



14518
14519
14520
# File 'lib/kaltura_types.rb', line 14518

def obj_type
  @obj_type
end

#object_idObject

Returns the value of attribute object_id.



14513
14514
14515
# File 'lib/kaltura_types.rb', line 14513

def object_id
  @object_id
end

#statusObject

Returns the value of attribute status.



14514
14515
14516
# File 'lib/kaltura_types.rb', line 14514

def status
  @status
end

#typeObject

Returns the value of attribute type.



14511
14512
14513
# File 'lib/kaltura_types.rb', line 14511

def type
  @type
end

#type_as_stringObject

Returns the value of attribute type_as_string.



14512
14513
14514
# File 'lib/kaltura_types.rb', line 14512

def type_as_string
  @type_as_string
end

#user_idObject

Returns the value of attribute user_id.



14510
14511
14512
# File 'lib/kaltura_types.rb', line 14510

def user_id
  @user_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
# File 'lib/kaltura_types.rb', line 14533

def from_xml(xml_element)
  super
  if xml_element.elements['userId'] != nil
    self.user_id = xml_element.elements['userId'].text
  end
  if xml_element.elements['type'] != nil
    self.type = xml_element.elements['type'].text
  end
  if xml_element.elements['typeAsString'] != nil
    self.type_as_string = xml_element.elements['typeAsString'].text
  end
  if xml_element.elements['objectId'] != nil
    self.object_id = xml_element.elements['objectId'].text
  end
  if xml_element.elements['status'] != nil
    self.status = xml_element.elements['status'].text
  end
  if xml_element.elements['data'] != nil
    self.data = xml_element.elements['data'].text
  end
  if xml_element.elements['numberOfAttempts'] != nil
    self.number_of_attempts = xml_element.elements['numberOfAttempts'].text
  end
  if xml_element.elements['notificationResult'] != nil
    self.notification_result = xml_element.elements['notificationResult'].text
  end
  if xml_element.elements['objType'] != nil
    self.obj_type = xml_element.elements['objType'].text
  end
end