module VkLongpollBot::Events
Everything related to longpoll events.
Constants
- TYPES
All the types and subtypes of events.
Public Class Methods
valid_subtype?(subtype)
click to toggle source
Check whether subtype is correct.
@param subtype [String]
# File lib/vk_longpoll_bot/events.rb, line 28 def self.valid_subtype?(subtype) TYPES.values.any? { |arr| arr.include?(subtype) } end