class SlackRubyBot::Commands::Support::Match

Attributes

attachment[R]
attachment_field[R]

Public Class Methods

new(match_data, attachment = nil, attachment_field = nil) click to toggle source
# File lib/slack-ruby-bot/commands/support/match.rb, line 13
def initialize(match_data, attachment = nil, attachment_field = nil)
  raise ArgumentError, 'match_data should be a type of MatchData' unless match_data.is_a? MatchData

  @match_data = match_data
  @attachment = attachment
  @attachment_field = attachment_field
end