class Plugin::DirectMessage::Sender

Public Class Methods

slug() click to toggle source
# File core/plugin/direct_message/sender.rb, line 6
def self.slug
  :twitter_directmessage_posting
end

Public Instance Methods

post(to:, message:, **kwrest, &block) click to toggle source
# File core/plugin/direct_message/sender.rb, line 10
def post(to,, message,, **kwrest, &block)
  current_world.send_direct_message(text: message, user: to, &block)
end
postable?(user) click to toggle source
# File core/plugin/direct_message/sender.rb, line 14
def postable?(user)
  user.class.slug == :twitter_user and current_world.class.slug == :twitter
end