Module: WeixinPam::PublicAccountReply::KeyEventMethods
- Extended by:
- ActiveSupport::Concern
- Included in:
- WeixinPam::PublicAccountReply
- Defined in:
- lib/weixin_pam/public_account_reply.rb
Instance Method Summary collapse
Instance Method Details
#find_key_event(key) ⇒ Object
15 16 17 18 |
# File 'lib/weixin_pam/public_account_reply.rb', line 15 def find_key_event(key) key = key.to_s.intern self.class.key_event_callbacks.find { |ke| ke.key == key } end |