Sqwiggle::Api::Resource
# File lib/sqwiggle/message.rb, line 15 def author if @author[:type] == 'user' client.users.find(@author[:id]) elsif @author[:type] == 'client' client.api_clients.find(@author[:id]) end end