Class: Melos::Struct::GroupInfoTBS

Inherits:
Base
  • Object
show all
Defined in:
lib/melos/struct/structs.rb

Constant Summary collapse

STRUCT =
[
  [:group_context, :class, Melos::Struct::GroupContext],
  [:extensions, :classes, Melos::Struct::Extension],
  [:confirmation_tag, :vec], # MAC = opaque <V>
  [:signer, :uint32]
]

Instance Attribute Summary collapse

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

#confirmation_tagObject (readonly)

Returns the value of attribute confirmation_tag.



508
509
510
# File 'lib/melos/struct/structs.rb', line 508

def confirmation_tag
  @confirmation_tag
end

#extensionsObject (readonly)

Returns the value of attribute extensions.



508
509
510
# File 'lib/melos/struct/structs.rb', line 508

def extensions
  @extensions
end

#group_contextObject (readonly)

Returns the value of attribute group_context.



508
509
510
# File 'lib/melos/struct/structs.rb', line 508

def group_context
  @group_context
end

#signatureObject (readonly)

Returns the value of attribute signature.



508
509
510
# File 'lib/melos/struct/structs.rb', line 508

def signature
  @signature
end

#signerObject (readonly)

Returns the value of attribute signer.



508
509
510
# File 'lib/melos/struct/structs.rb', line 508

def signer
  @signer
end

Class Method Details

.create(group_context:, extensions:, confirmation_tag:, signer:) ⇒ Object



516
517
518
519
520
521
522
523
# File 'lib/melos/struct/structs.rb', line 516

def self.create(group_context:, extensions:, confirmation_tag:, signer:)
  new_instance = self.allocate
  new_instance.instance_variable_set(:@group_context, group_context)
  new_instance.instance_variable_set(:@extensions, extensions)
  new_instance.instance_variable_set(:@confirmation_tag, confirmation_tag)
  new_instance.instance_variable_set(:@signer, signer)
  new_instance
end