Class: Melos::Struct::UpdatePathNode
- Defined in:
- lib/melos/struct/structs.rb
Constant Summary collapse
- STRUCT =
[ [:encryption_key, :vec], # HPKEPublicKey = opaque <V> [:encrypted_path_secret, :classes, Melos::Struct::HPKECipherText] ]
Instance Attribute Summary collapse
-
#encrypted_path_secret ⇒ Object
readonly
Returns the value of attribute encrypted_path_secret.
-
#encryption_key ⇒ Object
readonly
Returns the value of attribute encryption_key.
Class Method Summary collapse
Methods inherited from Base
#deserialize_select_elem_with_context, #initialize, #raw
Constructor Details
This class inherits a constructor from Melos::Struct::Base
Instance Attribute Details
#encrypted_path_secret ⇒ Object (readonly)
Returns the value of attribute encrypted_path_secret.
183 184 185 |
# File 'lib/melos/struct/structs.rb', line 183 def encrypted_path_secret @encrypted_path_secret end |
#encryption_key ⇒ Object (readonly)
Returns the value of attribute encryption_key.
183 184 185 |
# File 'lib/melos/struct/structs.rb', line 183 def encryption_key @encryption_key end |
Class Method Details
.create(encryption_key:, encrypted_path_secret:) ⇒ Object
189 190 191 192 193 194 |
# File 'lib/melos/struct/structs.rb', line 189 def self.create(encryption_key:, encrypted_path_secret:) new_instance = self.allocate new_instance.instance_variable_set(:@encryption_key, encryption_key) new_instance.instance_variable_set(:@encrypted_path_secret, encrypted_path_secret) new_instance end |