Slide 77
Slide 77 text
class <
def end
end
class <
def
= new
end
end
(amount);
(source_id, destination_id, amount)
command :: . (source_id, destination_id)
command.execute(amount)
Transfer::Command Context
execute
Subscription::RenewJob ApplicationJob
perform
Transfer Command
也能很好的重複在 Controller / Job 使用相同的邏輯