Sha256: 8b9ae55a79b6b9257d63efa3cce712cadf529669f7b9642b34b550a0d0f3e28f

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

module Sidetree
  module OP
    # Update operation class.
    # https://identity.foundation/sidetree/spec/#update
    class Update < Updatable
      # Parse update operation data from json string
      # @param [String] update_data update operation data(json string).
      # @return [Sidetree::OP::Update]
      # @raise [Sidetree::Error]
      def self.from_json(update_data)
        parse_json(update_data, Sidetree::OP::Type::UPDATE)
      end

      def type
        Sidetree::OP::Type::UPDATE
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidetree-0.1.5 lib/sidetree/op/update.rb
sidetree-0.1.4 lib/sidetree/op/update.rb
sidetree-0.1.3 lib/sidetree/op/update.rb
sidetree-0.1.2 lib/sidetree/op/update.rb