class Sqwiggle::Message

Public Instance Methods

author() click to toggle source
# 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