A library for handling DID identifiers used in Bluesky AT Protocol

parse 'seq' in PLCOperation if included

+2 -1
+2 -1
lib/didkit/plc_operation.rb
··· 12 12 include AtHandles 13 13 include Services 14 14 15 - attr_reader :json, :did, :cid, :created_at, :type, :handles, :services 15 + attr_reader :json, :did, :cid, :seq, :created_at, :type, :handles, :services 16 16 17 17 def initialize(json) 18 18 @json = json 19 + @seq = json['seq'] 19 20 @did = json['did'] 20 21 raise FormatError, "Missing DID: #{json}" if @did.nil? 21 22 raise FormatError, "Invalid DID: #{@did}" unless @did.is_a?(String) && @did.start_with?('did:')