Sha256: 69a3de136b46d1793833bfaf8dcc6b8aec87cdd0c496ccd0ff6f94a850c8ca50

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

module Hahamut
  module Message
    # Sticker Message
    class Sticker < Base
      class << self
        def match?(message)
          message['message']&.key?('sticker_group')
        end
      end

      attribute :sticker_group, :string
      attribute :sticker_id, :string

      def type
        :sticker
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hahamut-0.1.2 lib/hahamut/message/sticker.rb
hahamut-0.1.1 lib/hahamut/message/sticker.rb
hahamut-0.1.0 lib/hahamut/message/sticker.rb