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 17 def self.parse(type, data) klass = MESSAGE_TYPES[type] klass.new(data) if klass end