Class: Sidetree::OP::Recover

Inherits:
Updatable show all
Defined in:
lib/sidetree/op/recover.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(recover_data) ⇒ Sidetree::OP::Recover

Parse Recover operation data from json string

Parameters:

  • recover_data (String)

    recover operation data(json string).

Returns:

Raises:



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

def self.from_json(recover_data)
  parse_json(recover_data, Sidetree::OP::Type::RECOVER)
end

Instance Method Details

#typeObject



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

def type
  Sidetree::OP::Type::RECOVER
end