A Ruby gem for streaming data from the Bluesky/ATProto firehose
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

moved active? and status in AccountMessage to ivars

so that they are included in inspect output

+10 -4
+10 -4
lib/skyfall/firehose/account_message.rb
··· 2 2 3 3 module Skyfall 4 4 class Firehose::AccountMessage < Firehose::Message 5 - def active? 6 - @data_object['active'] 5 + def initialize(type_object, data_object) 6 + super 7 + raise DecodeError.new("Missing event details") if @data_object['active'].nil? 8 + 9 + @active = @data_object['active'] 10 + @status = @data_object['status']&.to_sym 7 11 end 8 12 9 - def status 10 - @data_object['status']&.to_sym 13 + def active? 14 + @active 11 15 end 16 + 17 + attr_reader :status 12 18 end 13 19 end