class Schatter::Command::CreateMessage

Attributes

conversation[R]
help[R]
usage[R]

Public Class Methods

new(conversation) click to toggle source
# File lib/schatter/command/create_message.rb, line 4
def initialize conversation
  @conversation = conversation
  @usage = 'content'
  @help = 'Creates a new message in the current conversation'
end

Public Instance Methods

execute(content) click to toggle source
# File lib/schatter/command/create_message.rb, line 10
def execute content
  conversation.create_message content: content
end