Class: Sidetree::OP::Update

Inherits:
Updatable show all
Defined in:
lib/sidetree/op/update.rb

Overview

Instance Attribute Summary

Attributes inherited from Updatable

#delta, #did_suffix, #revealed_value, #signed_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Updatable

#initialize, #key_name, parse_json

Constructor Details

This class inherits a constructor from Sidetree::OP::Updatable

Class Method Details

.from_json(update_data) ⇒ Sidetree::OP::Update

Parse update operation data from json string

Parameters:

  • update_data (String)

    update operation data(json string).

Returns:

Raises:



10
11
12
# File 'lib/sidetree/op/update.rb', line 10

def self.from_json(update_data)
  parse_json(update_data, Sidetree::OP::Type::UPDATE)
end

Instance Method Details

#typeObject



14
15
16
# File 'lib/sidetree/op/update.rb', line 14

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