module TivoHMO::API::Application

Represents the tivo concept of a Server (i.e. the root node which contains the top level containers). The identifier passed to the ctor should be a string that makes sense for initializing a subclass of app, e.g. a directory, a hostname:port, etc

Attributes

metadata_class[RW]
transcoder_class[RW]

Public Class Methods

new(identifier) click to toggle source
Calls superclass method TivoHMO::API::Container::new
# File lib/tivohmo/api/application.rb, line 17
def initialize(identifier)
  super(identifier)
  self.app = self
  self.content_type = "x-container/tivo-videos"
  self.source_format = "x-container/folder"
end

Public Instance Methods

metadata_for(item) click to toggle source
# File lib/tivohmo/api/application.rb, line 24
def metadata_for(item)
  metadata_class.new(item) if metadata_class
end
transcoder_for(item) click to toggle source
# File lib/tivohmo/api/application.rb, line 28
def transcoder_for(item)
  transcoder_class.new(item) if transcoder_class
end