Class: Plexify::Prepare::Destination

Inherits:
Object
  • Object
show all
Defined in:
lib/plexify/prepare.rb

Overview

Destination class implementation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Destination

Plexify::Execute initialize method



10
11
12
13
14
# File 'lib/plexify/prepare.rb', line 10

def initialize(options)
  @destination_path = options[:destination]
  @movies_destination_path = options[:movies_destination]
  @series_destination_path = options[:series_destination]
end

Instance Attribute Details

#folderObject

Returns the value of attribute folder.



5
6
7
# File 'lib/plexify/prepare.rb', line 5

def folder
  @folder
end

#movies_folderObject

Returns the value of attribute movies_folder.



6
7
8
# File 'lib/plexify/prepare.rb', line 6

def movies_folder
  @movies_folder
end

#series_folderObject

Returns the value of attribute series_folder.



7
8
9
# File 'lib/plexify/prepare.rb', line 7

def series_folder
  @series_folder
end

Instance Method Details

#prepareObject



16
17
18
19
20
21
22
# File 'lib/plexify/prepare.rb', line 16

def prepare
  if @destination_path
    prepare_destination
  else
    prepare_destinations
  end
end