Search code examples
sendwithus

Why does SendwithUs make you define instance methods instead of class methods?


I'm reading how to use SendWithUs

Why do we have to define instance methods in the class instead of class methods when we never actually instantiate the class? Why does SendWithUs force us to use this odd convention?


Solution

  • The Sendwithus action mailer was designed to match the conventions outlined in the existing ruby action mailer. We also have a Ruby client here which you could use instead of the Sendwithus action mailer. This would allow you to call our API directly.