Sha256: d468291671c213d01e898ffe904e5f3436e1892bc30997d87f2b0c3cd8881123
Contents?: true
Size: 914 Bytes
Versions: 2
Compression:
Stored size: 914 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 message_ts item.ts end def tldr "type: #{type}; channel:#{channel}; reaction:#{reaction}" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack_bot-events-0.2.0 | lib/slack_bot/events/schemas/type/reaction_modified.rb |
slack_bot-events-0.1.0 | lib/slack_bot/events/schemas/type/reaction_modified.rb |