Sha256: 651398bee8bd89d7d923581c03558819a1fcac0ce5f09786e185e4bace191bc6
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
# frozen_string_literal: true require "json_schematize" require "json_schematize/generator" require "slack_bot/events/schemas/type/item" module SlackBot module Events module Schemas module Type class ReactionModified < JsonSchematize::Generator schema_default option: :dig_type, value: :string add_field name: :type, type: String add_field name: :user, type: String add_field name: :reaction, type: String add_field name: :item, type: SlackBot::Events::Schemas::Type::Item add_field name: :item_user, type: String add_field name: :event_ts, type: String def channel item.channel end def tldr "type: #{type}; channel:#{channel}; reaction:#{reaction}" end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems