Class: GOBL::Envelope
- Includes:
- GOBL::Extensions::EnvelopeHelper
- Defined in:
- lib/generated/gobl/envelope.rb
Overview
Envelope wraps around a document adding headers and digital signatures.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Envelope structure
'https://gobl.org/draft-0/envelope'
Instance Attribute Summary collapse
-
#$schema($schema) ⇒ String
readonly
Schema identifies the schema that should be used to understand this document.
-
#doc ⇒ GOBL::Schema::Object
readonly
The data inside the envelope.
-
#head ⇒ GOBL::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 GOBL::Extensions::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
17 |
# File 'lib/generated/gobl/envelope.rb', line 17 property :$schema, String |
#doc ⇒ GOBL::Schema::Object (readonly)
The data inside the envelope
29 |
# File 'lib/generated/gobl/envelope.rb', line 29 property :doc, GOBL::Schema::Object |
#head ⇒ GOBL::Head::Header (readonly)
Details on what the contents are
23 |
# File 'lib/generated/gobl/envelope.rb', line 23 property :head, GOBL::Head::Header |
#sigs ⇒ Array<GOBL::DSig::Signature> (readonly)
JSON Web Signatures of the header
35 |
# File 'lib/generated/gobl/envelope.rb', line 35 property :sigs, [GOBL::DSig::Signature] |