chingor13/json_api_client — pull request #6 by elstgav (2014-06-10 20:21:27+00:00)
Title: Respond to

Currently a client resource will return false for .respond_to?(attribute) even though we dynamically add attribute methods with method_missing. This pull request adds a respond_to? method that correctly responds for dynamic attribute methods.

Borrowed from http://technicalpickles.com/posts/using-method_missing-and-respond_to-to-create-dynamic-methods/.