Class: Torganiser::Arranger::Destination
- Inherits:
-
Object
- Object
- Torganiser::Arranger::Destination
- Defined in:
- lib/torganiser/arranger.rb
Overview
Models a destination for an episode file in a collection
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#episode_file ⇒ Object
readonly
Returns the value of attribute episode_file.
Instance Method Summary collapse
- #directory ⇒ Object
-
#initialize(collection, episode_file) ⇒ Destination
constructor
A new instance of Destination.
Constructor Details
#initialize(collection, episode_file) ⇒ Destination
Returns a new instance of Destination.
43 44 45 46 |
# File 'lib/torganiser/arranger.rb', line 43 def initialize(collection, episode_file) @collection = collection @episode_file = episode_file end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
41 42 43 |
# File 'lib/torganiser/arranger.rb', line 41 def collection @collection end |
#episode_file ⇒ Object (readonly)
Returns the value of attribute episode_file.
41 42 43 |
# File 'lib/torganiser/arranger.rb', line 41 def episode_file @episode_file end |
Instance Method Details
#directory ⇒ Object
48 49 50 |
# File 'lib/torganiser/arranger.rb', line 48 def directory @directory ||= File.join(collection, series_dir, season_dir) end |