Class: TivoHMO::API::Server

Inherits:
Object
  • Object
show all
Includes:
GemLogger::LoggerSupport, Container
Defined in:
lib/tivohmo/api/server.rb

Overview

Represents the tivo concept of a Server (i.e. the root node which contains the top level applications)

Instance Attribute Summary

Attributes included from Container

#presorted, #uuid

Attributes included from Node

#app, #children, #content_type, #created_at, #identifier, #modified_at, #parent, #root, #source_format, #title

Instance Method Summary collapse

Methods included from Container

#child_count, #refresh

Methods included from Node

#add_child, #app?, #find, #root?, #title_path, #to_s, #tree_string

Constructor Details

#initializeServer

Returns a new instance of Server.



12
13
14
15
16
17
18
# File 'lib/tivohmo/api/server.rb', line 12

def initialize
  super('TivoHMO Server')
  self.root = self
  self.title = Socket.gethostname.split('.').first
  self.content_type = "x-container/tivo-server"
  self.source_format = "x-container/folder"
end