Class: PQCrypto::Seal::Opened

Inherits:
Struct
  • Object
show all
Defined in:
lib/pq_crypto/seal/models.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_suite_idObject

Returns the value of attribute content_suite_id

Returns:

  • (Object)

    the current value of content_suite_id



17
18
19
# File 'lib/pq_crypto/seal/models.rb', line 17

def content_suite_id
  @content_suite_id
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



17
18
19
# File 'lib/pq_crypto/seal/models.rb', line 17

def data
  @data
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



17
18
19
# File 'lib/pq_crypto/seal/models.rb', line 17

def 
  @metadata
end

#padding_policy_idObject

Returns the value of attribute padding_policy_id

Returns:

  • (Object)

    the current value of padding_policy_id



17
18
19
# File 'lib/pq_crypto/seal/models.rb', line 17

def padding_policy_id
  @padding_policy_id
end

#payload_idObject

Returns the value of attribute payload_id

Returns:

  • (Object)

    the current value of payload_id



17
18
19
# File 'lib/pq_crypto/seal/models.rb', line 17

def payload_id
  @payload_id
end

#public_metadataObject

Returns the value of attribute public_metadata

Returns:

  • (Object)

    the current value of public_metadata



17
18
19
# File 'lib/pq_crypto/seal/models.rb', line 17

def 
  @public_metadata
end

#wrap_suite_idObject

Returns the value of attribute wrap_suite_id

Returns:

  • (Object)

    the current value of wrap_suite_id



17
18
19
# File 'lib/pq_crypto/seal/models.rb', line 17

def wrap_suite_id
  @wrap_suite_id
end

Class Method Details

.build(header, section, data:, metadata:) ⇒ Object



22
23
24
# File 'lib/pq_crypto/seal/models.rb', line 22

def self.build(header, section, data:, metadata:)
  new(data: data, metadata: , **SHARED_ENVELOPE_ATTRS.call(header, section))
end