Sha256: 6251e7ffdd112c2a6108f83beb31237bf95986a216b6bed7a1ef566bec236200

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

module SlackRubyBotServer
  module Events
    module AppMentions
      module Support
        class Match
          extend Forwardable

          delegate MatchData.public_instance_methods(false) => :@match_data

          def initialize(match_data)
            raise ArgumentError, 'match_data should be a type of MatchData' unless match_data.is_a? MatchData

            @match_data = match_data
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-bot-server-events-app-mentions-0.1.1 lib/slack-ruby-bot-server-events-app-mentions/mentions/support/match.rb
slack-ruby-bot-server-events-app-mentions-0.1.0 lib/slack-ruby-bot-server-events-app-mentions/mentions/support/match.rb