blog-post-anatomy-of-a-service-object-in-rails

http://technology.stitchfix.com/blog/2015/06/02/anatomy-of-service-objects-in-rails/

blog-post-anatomy-of-a-service-object-in-rails#high-level-overview1

blog-post-anatomy-of-a-service-object-in-rails#high-level-overview1

blog-post-anatomy-of-a-service-object-in-rails#use-instance-methods1By designing our service objects to use instance methods, it means the users of our service will depend on objects, not global symbols. Although we have to type four additional characters—.new—our code using our service can more easily adapt to change, since we can modify the class of the object we're using without changing the code that uses it. blog-post-anatomy-of-a-service-object-in-rails#use-instance-methods1

Referring Pages

service-objects rich-result-object use-instance-methods-not-class-methods comment-lots-of-little-classes-hard-to-reason-about

People

person-dave-copeland