Class: Architecture::Move
- Inherits:
-
Object
- Object
- Architecture::Move
- Includes:
- Replicatable
- Defined in:
- lib/architecture/move.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(source:, destination:) ⇒ Move
constructor
A new instance of Move.
Constructor Details
#initialize(source:, destination:) ⇒ Move
Returns a new instance of Move.
5 6 7 8 |
# File 'lib/architecture/move.rb', line 5 def initialize(source:, destination:) @origin = source @clone = destination end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/architecture/move.rb', line 10 def call origin.move(entity: clone) end |