Class: MediaFiles

Inherits:
Object
  • Object
show all
Defined in:
lib/dvdprofiler2xbmc/models/media_files.rb

Overview

Synopsis

encapsulation of all media files

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(directories) ⇒ MediaFiles

Synopsis

directories => Array of String directory pathspecs



8
9
10
11
# File 'lib/dvdprofiler2xbmc/models/media_files.rb', line 8

def initialize(directories)
  @medias = find_medias(directories)
  @titles = find_titles(@medias)
end

Instance Attribute Details

#mediasObject (readonly)

Returns the value of attribute medias



4
5
6
# File 'lib/dvdprofiler2xbmc/models/media_files.rb', line 4

def medias
  @medias
end

#titlesObject (readonly)

Returns the value of attribute titles



4
5
6
# File 'lib/dvdprofiler2xbmc/models/media_files.rb', line 4

def titles
  @titles
end

Instance Method Details

#duplicate_titlesObject

should be ran after nfo_controller.update



14
15
16
# File 'lib/dvdprofiler2xbmc/models/media_files.rb', line 14

def duplicate_titles
  find_duplicate_titles(@titles)
end