Class: TivoHMO::Adapters::Filesystem::Group

Inherits:
Object
  • Object
show all
Includes:
GemLogger::LoggerSupport, TivoHMO::API::Container
Defined in:
lib/tivohmo/adapters/filesystem/group.rb

Instance Attribute Summary

Attributes included from TivoHMO::API::Container

#presorted, #uuid

Attributes included from TivoHMO::API::Node

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

Instance Method Summary collapse

Methods included from TivoHMO::API::Container

#child_count, #refresh

Methods included from TivoHMO::API::Node

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

Constructor Details

#initialize(ident, title) ⇒ Group

Returns a new instance of Group.



9
10
11
12
13
14
15
16
# File 'lib/tivohmo/adapters/filesystem/group.rb', line 9

def initialize(ident, title)
  super(ident)

  self.presorted = true
  self.title = title
  self.modified_at = File.mtime(self.identifier)
  self.created_at = File.ctime(self.identifier)
end