Class: Catalog::DocumentMover
- Inherits:
-
Object
- Object
- Catalog::DocumentMover
- Defined in:
- lib/catalog/services/document_mover.rb
Instance Method Summary collapse
-
#initialize(document:, drawer:) ⇒ DocumentMover
constructor
A new instance of DocumentMover.
- #move! ⇒ Object
Constructor Details
#initialize(document:, drawer:) ⇒ DocumentMover
Returns a new instance of DocumentMover.
3 4 5 6 |
# File 'lib/catalog/services/document_mover.rb', line 3 def initialize(document:, drawer:) @document = document @drawer = drawer end |
Instance Method Details
#move! ⇒ Object
8 9 10 11 |
# File 'lib/catalog/services/document_mover.rb', line 8 def move! create_drawer_folder! move_file! end |