···116116- `type` (symbol) – the message type identifier, e.g. `:record`
117117- `id` (integer), aliased as `seq` – a sequential index of the message
118118119119-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.
119119+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.)
120120121121An `Operation` has such fields (also matching the API of `Skyfall::Firehose::Operation` and `Skyfall::Jetstream::Operation`):
122122
+7-1
lib/tapfall/messages/record_message.rb
···88 super
99 end
10101111+ def operation
1212+ @operation ||= Operation.new(json['record'])
1313+ end
1414+1115 def operations
1212- @operations ||= [Operation.new(json['record'])]
1616+ [operation]
1317 end
1818+1919+ alias op operation
1420 end
1521end