Validating Mandrill webhook signature on Ruby on Rails

I'm writing this post partially because I couldn't find anything exactly like this and to keep a log for me, in case I have to deal with this once again. Since Mandrill does not provide a way to authenticate their webhooks using, for example, a user/password combination, they came…

Encapsulation in Ruby on Rails

In Object-Oriented Programming, encapsulation is one of the fundamentals concept. Understand encapsulation will help you write concise and easy to maintain code. But what exactly is encapsulation? If you search on the Internet you might find something like this: encapsulation is hide the internal representation or state of an object.…