Class: Plex::Autodelete::Cleanup
- Inherits:
-
Object
- Object
- Plex::Autodelete::Cleanup
- Defined in:
- lib/plex/autodelete/cleanup.rb
Class Method Summary collapse
Class Method Details
.cleanup ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/plex/autodelete/cleanup.rb', line 30 def self.cleanup self.required_params! self.plex_server.library.section(@config[:section]).all.each do |show| self.proccess_show show end self.output_stats end |
.configure(opts = {}) ⇒ Object
26 27 28 |
# File 'lib/plex/autodelete/cleanup.rb', line 26 def self.configure(opts = {}) opts.each {|key, value| @config[key.to_sym] = value if @config_keys.include? key.to_sym} end |