class Plugin::DirectMessage::Sender

Public Class Methods

new(user) click to toggle source
# File core/plugin/direct_message/sender.rb, line 4
def initialize(user)
  @user = user
end

Public Instance Methods

post(args) click to toggle source
# File core/plugin/direct_message/sender.rb, line 8
def post(args)
  Service.primary.send_direct_message({:text => args[:message], :user => @user}, &Proc.new)
end