Class: GOBL::Envelope
- Includes:
- GOBLExtensions::EnvelopeHelper
- Defined in:
- lib/gobl/envelope.rb
Overview
Envelope wraps around a gobl document and provides support for digest creation and digital signatures.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Envelope structure
'https://gobl.org/draft-0/envelope'
Constants included from Hashme
Instance Attribute Summary collapse
-
#$schema($schema) ⇒ String
readonly
Schema identifies the schema that should be used to understand this document.
-
#doc ⇒ Document
readonly
The data inside the envelope.
-
#head ⇒ Header
readonly
Details on what the contents are.
-
#sigs ⇒ Array<GOBL::DSig::Signature>
readonly
JSON Web Signatures of the header.
Method Summary
Methods included from GOBLExtensions::EnvelopeHelper
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#$schema($schema) ⇒ String (readonly)
Schema identifies the schema that should be used to understand this document
18 |
# File 'lib/gobl/envelope.rb', line 18 property :$schema, String |
#doc ⇒ Document (readonly)
The data inside the envelope
30 |
# File 'lib/gobl/envelope.rb', line 30 property :doc, Document |
#head ⇒ Header (readonly)
Details on what the contents are
24 |
# File 'lib/gobl/envelope.rb', line 24 property :head, Header |
#sigs ⇒ Array<GOBL::DSig::Signature> (readonly)
JSON Web Signatures of the header
36 |
# File 'lib/gobl/envelope.rb', line 36 property :sigs, [GOBL::DSig::Signature] |