class Mastodon::Streaming::MessageParser

Constants

MESSAGE_TYPES

Public Class Methods

parse(type, data) click to toggle source
# File lib/mastodon/streaming/message_parser.rb, line 15
def self.parse(type, data)
  klass = MESSAGE_TYPES[type]
  klass&.new(data)
end