Class: Kaltura::KalturaPlayableEntry
- Inherits:
-
KalturaBaseEntry
- Object
- KalturaObjectBase
- KalturaBaseEntry
- Kaltura::KalturaPlayableEntry
- Defined in:
- lib/kaltura_types.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#duration ⇒ Object
The duration in seconds.
-
#duration_type ⇒ Object
The duration type (short for 0-4 mins, medium for 4-20 mins, long for 20+ mins).
-
#height ⇒ Object
The height in pixels.
-
#last_played_at ⇒ Object
The last time the entry was played.
-
#ms_duration ⇒ Object
The duration in miliseconds.
-
#plays ⇒ Object
Number of plays.
-
#views ⇒ Object
Number of views.
-
#width ⇒ Object
The width in pixels.
Attributes inherited from KalturaBaseEntry
#access_control_id, #admin_tags, #application, #application_version, #block_auto_transcript, #capabilities, #categories, #categories_ids, #conversion_profile_id, #created_at, #creator_id, #description, #display_in_search, #download_url, #end_date, #entitled_users_edit, #entitled_users_publish, #entitled_users_view, #group_id, #id, #license_type, #moderation_count, #moderation_status, #multi_lingual_description, #multi_lingual_name, #multi_lingual_tags, #name, #operation_attributes, #parent_entry_id, #partner_data, #partner_id, #partner_sort_value, #rank, #redirect_entry_id, #reference_id, #replaced_entry_id, #replacement_status, #replacing_entry_id, #root_entry_id, #search_text, #start_date, #status, #tags, #template_entry_id, #thumbnail_url, #total_rank, #type, #updated_at, #user_id, #version, #votes
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#duration ⇒ Object
The duration in seconds
4695 4696 4697 |
# File 'lib/kaltura_types.rb', line 4695 def duration @duration end |
#duration_type ⇒ Object
The duration type (short for 0-4 mins, medium for 4-20 mins, long for 20+ mins)
4699 4700 4701 |
# File 'lib/kaltura_types.rb', line 4699 def duration_type @duration_type end |
#height ⇒ Object
The height in pixels
4693 4694 4695 |
# File 'lib/kaltura_types.rb', line 4693 def height @height end |
#last_played_at ⇒ Object
The last time the entry was played
4689 4690 4691 |
# File 'lib/kaltura_types.rb', line 4689 def last_played_at @last_played_at end |
#ms_duration ⇒ Object
The duration in miliseconds
4697 4698 4699 |
# File 'lib/kaltura_types.rb', line 4697 def ms_duration @ms_duration end |
#plays ⇒ Object
Number of plays
4685 4686 4687 |
# File 'lib/kaltura_types.rb', line 4685 def plays @plays end |
#views ⇒ Object
Number of views
4687 4688 4689 |
# File 'lib/kaltura_types.rb', line 4687 def views @views end |
#width ⇒ Object
The width in pixels
4691 4692 4693 |
# File 'lib/kaltura_types.rb', line 4691 def width @width end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 |
# File 'lib/kaltura_types.rb', line 4723 def from_xml(xml_element) super if xml_element.elements['plays'] != nil self.plays = xml_element.elements['plays'].text end if xml_element.elements['views'] != nil self.views = xml_element.elements['views'].text end if xml_element.elements['lastPlayedAt'] != nil self.last_played_at = xml_element.elements['lastPlayedAt'].text end if xml_element.elements['width'] != nil self.width = xml_element.elements['width'].text end if xml_element.elements['height'] != nil self.height = xml_element.elements['height'].text end if xml_element.elements['duration'] != nil self.duration = xml_element.elements['duration'].text end if xml_element.elements['msDuration'] != nil self.ms_duration = xml_element.elements['msDuration'].text end if xml_element.elements['durationType'] != nil self.duration_type = xml_element.elements['durationType'].text end end |