Class: Kaltura::KalturaSearchResult

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

Instance Attribute Summary collapse

Attributes inherited from KalturaSearch

#auth_data, #extra_data, #key_words, #media_type, #search_source

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#creditObject

Returns the value of attribute credit.



8717
8718
8719
# File 'lib/kaltura_types.rb', line 8717

def credit
  @credit
end

#descriptionObject

Returns the value of attribute description.



8713
8714
8715
# File 'lib/kaltura_types.rb', line 8713

def description
  @description
end

#file_extObject

Returns the value of attribute file_ext.



8720
8721
8722
# File 'lib/kaltura_types.rb', line 8720

def file_ext
  @file_ext
end

#flash_playback_typeObject

Returns the value of attribute flash_playback_type.



8719
8720
8721
# File 'lib/kaltura_types.rb', line 8719

def flash_playback_type
  @flash_playback_type
end

#idObject

Returns the value of attribute id.



8710
8711
8712
# File 'lib/kaltura_types.rb', line 8710

def id
  @id
end

#license_typeObject

Returns the value of attribute license_type.



8718
8719
8720
# File 'lib/kaltura_types.rb', line 8718

def license_type
  @license_type
end

Returns the value of attribute source_link.



8716
8717
8718
# File 'lib/kaltura_types.rb', line 8716

def source_link
  @source_link
end

#tagsObject

Returns the value of attribute tags.



8714
8715
8716
# File 'lib/kaltura_types.rb', line 8714

def tags
  @tags
end

#thumb_urlObject

Returns the value of attribute thumb_url.



8712
8713
8714
# File 'lib/kaltura_types.rb', line 8712

def thumb_url
  @thumb_url
end

#titleObject

Returns the value of attribute title.



8711
8712
8713
# File 'lib/kaltura_types.rb', line 8711

def title
  @title
end

#urlObject

Returns the value of attribute url.



8715
8716
8717
# File 'lib/kaltura_types.rb', line 8715

def url
  @url
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
# File 'lib/kaltura_types.rb', line 8726

def from_xml(xml_element)
  super
  if xml_element.elements['id'] != nil
    self.id = xml_element.elements['id'].text
  end
  if xml_element.elements['title'] != nil
    self.title = xml_element.elements['title'].text
  end
  if xml_element.elements['thumbUrl'] != nil
    self.thumb_url = xml_element.elements['thumbUrl'].text
  end
  if xml_element.elements['description'] != nil
    self.description = xml_element.elements['description'].text
  end
  if xml_element.elements['tags'] != nil
    self.tags = xml_element.elements['tags'].text
  end
  if xml_element.elements['url'] != nil
    self.url = xml_element.elements['url'].text
  end
  if xml_element.elements['sourceLink'] != nil
    self.source_link = xml_element.elements['sourceLink'].text
  end
  if xml_element.elements['credit'] != nil
    self.credit = xml_element.elements['credit'].text
  end
  if xml_element.elements['licenseType'] != nil
    self.license_type = xml_element.elements['licenseType'].text
  end
  if xml_element.elements['flashPlaybackType'] != nil
    self.flash_playback_type = xml_element.elements['flashPlaybackType'].text
  end
  if xml_element.elements['fileExt'] != nil
    self.file_ext = xml_element.elements['fileExt'].text
  end
end