module TivoHMO::API::Item

Represents the tivo concept of an Item (i.e. a file that can be displayed), and is always a leaf node in the tree.

Attributes

file[RW]
subtitle[RW]

Public Class Methods

new(identifier) click to toggle source
Calls superclass method TivoHMO::API::Node::new
# File lib/tivohmo/api/item.rb, line 13
def initialize(identifier)
  super(identifier)
  self.content_type = "video/x-tivo-mpeg"
  self.source_format = "video/x-tivo-mpeg"
end

Public Instance Methods

metadata() click to toggle source
# File lib/tivohmo/api/item.rb, line 19
def metadata
  @metadata ||= app.metadata_for(self)
end
to_s() click to toggle source
# File lib/tivohmo/api/item.rb, line 27
def to_s
  "<#{self.class.name}: #{self.identifier}>"
end
transcoder() click to toggle source
# File lib/tivohmo/api/item.rb, line 23
def transcoder
  @transcoder ||= app.transcoder_for(self)
end