class Slackoff::SlashData

Retrieves slash command data from the params hash

Attributes

channel_id[R]
channel_name[R]
command[R]
team_domain[R]
team_id[R]
text[R]
token[R]
user_id[R]
user_name[R]

Public Class Methods

new(params) click to toggle source
# File lib/slackoff/slash.rb, line 8
def initialize(params)
  @token = params[:token]
  @team_id = params[:team_id]
  @team_domain = params[:team_domain]
  @channel_id = params[:channel_id]
  @channel_name = params[:channel_name]
  @user_id = params[:user_id]
  @user_name = params[:user_name]
  @command = params[:command]
  @text = params[:text]
end