Class: Hahamut::Message::Sticker

Inherits:
Base
  • Object
show all
Defined in:
lib/hahamut/message/sticker.rb

Overview

Sticker Message

Instance Attribute Summary

Attributes inherited from Base

#sender_id

Attributes included from Support::Attributes

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#as_json, #initialize, #to_json

Methods included from Support::Attributes

#assign_attributes, included

Constructor Details

This class inherits a constructor from Hahamut::Message::Base

Class Method Details

.match?(message) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/hahamut/message/sticker.rb', line 8

def match?(message)
  message['message']&.key?('sticker_group')
end

Instance Method Details

#typeObject



16
17
18
# File 'lib/hahamut/message/sticker.rb', line 16

def type
  :sticker
end