Ruby gem for ingesting ATProto repo data from a Tap service (extension of Skyfall gem)
2
fork

Configure Feed

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

added #operation / #op methods to RecordMessage

+8 -2
+1 -1
README.md
··· 116 116 - `type` (symbol) – the message type identifier, e.g. `:record` 117 117 - `id` (integer), aliased as `seq` – a sequential index of the message 118 118 119 - The `:record` messages have an `operations` method, which includes an array of add/remove/edit `Operation`s done on some records. Currently Tap event format only includes one single record operation in each event, but it's returned as an array here for symmetry with the `Skyfall::Firehose` stream version. 119 + The `:record` messages have an `operation` method (aliased as `op`), which returns an `Operation` object with details of an create/update/delete operation done a record. (For symmetry with the `Skyfall::Firehose` stream version, there's also an `operations` method which returns an array.) 120 120 121 121 An `Operation` has such fields (also matching the API of `Skyfall::Firehose::Operation` and `Skyfall::Jetstream::Operation`): 122 122
+7 -1
lib/tapfall/messages/record_message.rb
··· 8 8 super 9 9 end 10 10 11 + def operation 12 + @operation ||= Operation.new(json['record']) 13 + end 14 + 11 15 def operations 12 - @operations ||= [Operation.new(json['record'])] 16 + [operation] 13 17 end 18 + 19 + alias op operation 14 20 end 15 21 end