Class: Kaltura::KalturaESearchCuePointItemData

Inherits:
KalturaESearchItemData show all
Defined in:
lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaESearchItemData

#highlight

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#answersObject

Returns the value of attribute answers.



628
629
630
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 628

def answers
  @answers
end

#asset_idObject

Returns the value of attribute asset_id.



631
632
633
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 631

def asset_id
  @asset_id
end

#cue_point_typeObject

Returns the value of attribute cue_point_type.



619
620
621
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 619

def cue_point_type
  @cue_point_type
end

#end_timeObject

Returns the value of attribute end_time.



625
626
627
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 625

def end_time
  @end_time
end

#explanationObject

Returns the value of attribute explanation.



630
631
632
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 630

def explanation
  @explanation
end

#hintObject

Returns the value of attribute hint.



629
630
631
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 629

def hint
  @hint
end

#idObject

Returns the value of attribute id.



620
621
622
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 620

def id
  @id
end

#nameObject

Returns the value of attribute name.



621
622
623
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 621

def name
  @name
end

#questionObject

Returns the value of attribute question.



627
628
629
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 627

def question
  @question
end

#start_timeObject

Returns the value of attribute start_time.



624
625
626
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 624

def start_time
  @start_time
end

#sub_typeObject

Returns the value of attribute sub_type.



626
627
628
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 626

def sub_type
  @sub_type
end

#tagsObject

Returns the value of attribute tags.



623
624
625
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 623

def tags
  @tags
end

#textObject

Returns the value of attribute text.



622
623
624
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 622

def text
  @text
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
# File 'lib/kaltura_plugins/kaltura_elastic_search_client_plugin.rb', line 634

def from_xml(xml_element)
  super
  if xml_element.elements['cuePointType'] != nil
    self.cue_point_type = xml_element.elements['cuePointType'].text
  end
  if xml_element.elements['id'] != nil
    self.id = xml_element.elements['id'].text
  end
  if xml_element.elements['name'] != nil
    self.name = xml_element.elements['name'].text
  end
  if xml_element.elements['text'] != nil
    self.text = xml_element.elements['text'].text
  end
  if xml_element.elements['tags'] != nil
    self.tags = KalturaClientBase.object_from_xml(xml_element.elements['tags'], 'KalturaString')
  end
  if xml_element.elements['startTime'] != nil
    self.start_time = xml_element.elements['startTime'].text
  end
  if xml_element.elements['endTime'] != nil
    self.end_time = xml_element.elements['endTime'].text
  end
  if xml_element.elements['subType'] != nil
    self.sub_type = xml_element.elements['subType'].text
  end
  if xml_element.elements['question'] != nil
    self.question = xml_element.elements['question'].text
  end
  if xml_element.elements['answers'] != nil
    self.answers = KalturaClientBase.object_from_xml(xml_element.elements['answers'], 'KalturaString')
  end
  if xml_element.elements['hint'] != nil
    self.hint = xml_element.elements['hint'].text
  end
  if xml_element.elements['explanation'] != nil
    self.explanation = xml_element.elements['explanation'].text
  end
  if xml_element.elements['assetId'] != nil
    self.asset_id = xml_element.elements['assetId'].text
  end
end