Class: Catalog::DocumentMover

Inherits:
Object
  • Object
show all
Defined in:
lib/catalog/services/document_mover.rb

Instance Method Summary collapse

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