Class: GOBL::Head::Header

Inherits:
Object show all
Defined in:
lib/generated/gobl/head/header.rb

Overview

Header defines the metadata of the body.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Header structure

'https://gobl.org/draft-0/head/header'

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#digGOBL::DSig::Digest (readonly)

Digest of the canonical JSON body.

Returns:



24
# File 'lib/generated/gobl/head/header.rb', line 24

property :dig, GOBL::DSig::Digest

#draftBoolean (readonly)

When true, implies that this document should not be considered final. Digital signatures are optional.

Returns:

  • (Boolean)


50
# File 'lib/generated/gobl/head/header.rb', line 50

property :draft, Boolean

#metaGOBL::CBC::Meta (readonly)

Additional semi-structured information about this envelope.

Returns:



40
# File 'lib/generated/gobl/head/header.rb', line 40

property :meta, GOBL::CBC::Meta

#notesString (readonly)

Any information that may be relevant to other humans about this envelope

Returns:

  • (String)


45
# File 'lib/generated/gobl/head/header.rb', line 45

property :notes, String

#stampsArray<GOBL::Head::Stamp> (readonly)

Seals of approval from other organisations that can only be added to non-draft envelopes.

Returns:



30
# File 'lib/generated/gobl/head/header.rb', line 30

property :stamps, [GOBL::Head::Stamp]

#tagsArray<String> (readonly)

Set of labels that describe but have no influence on the data.

Returns:

  • (Array<String>)


35
# File 'lib/generated/gobl/head/header.rb', line 35

property :tags, [String]

#uuidString (readonly)

Unique UUIDv1 identifier for the envelope.

Returns:

  • (String)


18
# File 'lib/generated/gobl/head/header.rb', line 18

property :uuid, String