Class: GOBL::Org::Attachment
- Inherits:
-
GOBL::Object
- Object
- Struct
- GOBL::Object
- GOBL::Org::Attachment
- Defined in:
- lib/generated/gobl/org/attachment.rb
Overview
An Attachment provides a structure to be used to attach documents inside a GOBL document, either as a reference via a URL, or directly as a base64 encoded string.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Attachment structure
'https://gobl.org/draft-0/org/attachment'
Instance Attribute Summary collapse
-
#code ⇒ GOBL::CBC::Code
readonly
Code used to identify the payload of the attachment.
-
#description ⇒ String
readonly
Details of why the attachment is being included and details on what it contains.
-
#digest ⇒ GOBL::DSig::Digest
readonly
Digest is used to verify the integrity of the attachment when downloaded from the URL.
-
#key ⇒ GOBL::CBC::Key
readonly
Key used to identify the attachment inside the document.
-
#mime ⇒ String
readonly
MIME type of the attachment.
-
#name ⇒ String
readonly
Filename of the attachment.
-
#url ⇒ String
readonly
URL of where to find the attachment.
-
#uuid ⇒ String
readonly
Universally Unique Identifier.
Method Summary
Methods inherited from GOBL::Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#code ⇒ GOBL::CBC::Code (readonly)
Code used to identify the payload of the attachment.
28 |
# File 'lib/generated/gobl/org/attachment.rb', line 28 property :code, GOBL::CBC::Code |
#description ⇒ String (readonly)
Details of why the attachment is being included and details on what it contains.
39 |
# File 'lib/generated/gobl/org/attachment.rb', line 39 property :description, String |
#digest ⇒ GOBL::DSig::Digest (readonly)
Digest is used to verify the integrity of the attachment when downloaded from the URL.
49 |
# File 'lib/generated/gobl/org/attachment.rb', line 49 property :digest, GOBL::DSig::Digest |
#key ⇒ GOBL::CBC::Key (readonly)
Key used to identify the attachment inside the document.
23 |
# File 'lib/generated/gobl/org/attachment.rb', line 23 property :key, GOBL::CBC::Key |
#mime ⇒ String (readonly)
MIME type of the attachment.
54 |
# File 'lib/generated/gobl/org/attachment.rb', line 54 property :mime, String |
#name ⇒ String (readonly)
Filename of the attachment.
33 |
# File 'lib/generated/gobl/org/attachment.rb', line 33 property :name, String |
#url ⇒ String (readonly)
URL of where to find the attachment. Prefer using this field over the Data field.
44 |
# File 'lib/generated/gobl/org/attachment.rb', line 44 property :url, String |
#uuid ⇒ String (readonly)
Universally Unique Identifier.
18 |
# File 'lib/generated/gobl/org/attachment.rb', line 18 property :uuid, String |