class SimpleSlack::Deleter

Public Class Methods

new(slack, client) click to toggle source
# File lib/simple_slack/deleter.rb, line 3
def initialize(slack, client)
  @slack  = slack
  @client = client
end

Public Instance Methods

chat(channel:, ts:, as_user: true) click to toggle source
# File lib/simple_slack/deleter.rb, line 12
def chat(channel:, ts:, as_user: true)
  channel_id = @client.get.channel(channel)[:id]
  @slack.chat_delete(channel: channel_id, ts: ts, as_user: as_user)
end
to_a() click to toggle source
# File lib/simple_slack/deleter.rb, line 8
def to_a
  "#chat(ts: string:require, channel: string:require. as_user: boolean:optional)"
end