Class: Melos::Struct::ConfirmedTranscriptHashInput
- Defined in:
- lib/melos/struct/structs.rb
Overview
8.2
Constant Summary collapse
- STRUCT =
[ [:wire_format, :uint16], [:content, :class, Melos::Struct::FramedContent], # with content_type == commit [:signature, :vec] ]
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#wire_format ⇒ Object
Returns the value of attribute wire_format.
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
#content ⇒ Object
Returns the value of attribute content.
980 981 982 |
# File 'lib/melos/struct/structs.rb', line 980 def content @content end |
#signature ⇒ Object
Returns the value of attribute signature.
980 981 982 |
# File 'lib/melos/struct/structs.rb', line 980 def signature @signature end |
#wire_format ⇒ Object
Returns the value of attribute wire_format.
980 981 982 |
# File 'lib/melos/struct/structs.rb', line 980 def wire_format @wire_format end |
Class Method Details
.create(wire_format:, content:, signature:) ⇒ Object
987 988 989 990 991 992 993 |
# File 'lib/melos/struct/structs.rb', line 987 def self.create(wire_format:, content:, signature:) new_instance = self.allocate new_instance.instance_variable_set(:@wire_format, wire_format) new_instance.instance_variable_set(:@content, content) new_instance.instance_variable_set(:@signature, signature) new_instance end |