Class: Plexify::Prepare::Destination
- Inherits:
-
Object
- Object
- Plexify::Prepare::Destination
- Defined in:
- lib/plexify/prepare.rb
Overview
Destination class implementation
Instance Attribute Summary collapse
-
#folder ⇒ Object
Returns the value of attribute folder.
-
#movies_folder ⇒ Object
Returns the value of attribute movies_folder.
-
#series_folder ⇒ Object
Returns the value of attribute series_folder.
Instance Method Summary collapse
-
#initialize(options) ⇒ Destination
constructor
Plexify::Execute initialize method.
- #prepare ⇒ Object
Constructor Details
#initialize(options) ⇒ Destination
Plexify::Execute initialize method
10 11 12 13 14 |
# File 'lib/plexify/prepare.rb', line 10 def initialize() @destination_path = [:destination] @movies_destination_path = [:movies_destination] @series_destination_path = [:series_destination] end |
Instance Attribute Details
#folder ⇒ Object
Returns the value of attribute folder.
5 6 7 |
# File 'lib/plexify/prepare.rb', line 5 def folder @folder end |
#movies_folder ⇒ Object
Returns the value of attribute movies_folder.
6 7 8 |
# File 'lib/plexify/prepare.rb', line 6 def movies_folder @movies_folder end |
#series_folder ⇒ Object
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
#prepare ⇒ Object
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 |