Next | Roles | 11 |
Consumers have a bunch of machinery for supporting cancellation of service
A handler for a cancel event
A published cancel method
A cancelled_at date and a mark_cancelled method to set it
etc.
This stuff is not in Moonpig::Role::Consumer
Instead, it's in Moonpig::Role::CanCancel
Not because anything else uses it
Just to help break up the code for the giant Consumer class
And we can test this machinery independent of the giant Consumer class
Class ≠ Module
Next | Copyright © 2013 M. J. Dominus |