Class: TivoHMO::API::Server
- Inherits:
-
Object
- Object
- TivoHMO::API::Server
- 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
Attributes included from Node
#app, #children, #content_type, #created_at, #identifier, #modified_at, #parent, #root, #source_format, #title
Instance Method Summary collapse
-
#initialize ⇒ Server
constructor
A new instance of Server.
Methods included from Container
Methods included from Node
#add_child, #app?, #find, #root?, #title_path, #to_s, #tree_string
Constructor Details
#initialize ⇒ Server
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 |