Template of a custom feed generator service for the Bluesky network in Ruby

use message#type instead of explicit class names

Changed files
+2 -2
app
+2 -2
app/firehose_stream.rb
··· 73 73 end 74 74 75 75 def process_message(msg) 76 - if msg.is_a?(Skyfall::InfoMessage) 76 + if msg.type == :info 77 77 # AtProto error, the only one right now is "OutdatedCursor" 78 78 log "InfoMessage: #{msg}" 79 - elsif msg.is_a?(Skyfall::HandleMessage) 79 + elsif msg.type == :handle 80 80 # use these events if you want to track handle changes: 81 81 # log "Handle change: #{msg.repo} => #{msg.handle}" 82 82 elsif msg.is_a?(Skyfall::UnknownMessage)