Class: GOBL::Org::Image
- Inherits:
-
GOBL::Object
- Object
- Struct
- GOBL::Object
- GOBL::Org::Image
- Defined in:
- lib/generated/gobl/org/image.rb
Overview
Image describes a logo or photo that represents an entity.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Image structure
'https://gobl.org/draft-0/org/image'
Instance Attribute Summary collapse
-
#alt ⇒ String
readonly
Alternative text if the image cannot be shown.
-
#data ⇒ String
readonly
As an alternative to the URL and only when the source data is small, like an SVG, the raw data may be provided using Base64 encoding.
-
#description ⇒ String
readonly
Details of what the image represents.
-
#digest ⇒ GOBL::DSig::Digest
readonly
Digest can be used to ensure the image contained at the URL is the same one as originally intended.
-
#height ⇒ Integer
readonly
Height of the image in pixels.
-
#label ⇒ String
readonly
Label to help identify the image.
-
#mime ⇒ String
readonly
Format of the image.
-
#url ⇒ String
readonly
URL of the image.
-
#uuid ⇒ GOBL::UUID::UUID
readonly
Unique ID of the image.
-
#width ⇒ Integer
readonly
Width of the image in pixels.
Method Summary
Methods inherited from GOBL::Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#alt ⇒ String (readonly)
Alternative text if the image cannot be shown.
49 |
# File 'lib/generated/gobl/org/image.rb', line 49 property :alt, String |
#data ⇒ String (readonly)
As an alternative to the URL and only when the source data is small, like an SVG, the raw data may be provided using Base64 encoding.
34 |
# File 'lib/generated/gobl/org/image.rb', line 34 property :data, String |
#description ⇒ String (readonly)
Details of what the image represents.
44 |
# File 'lib/generated/gobl/org/image.rb', line 44 property :description, String |
#digest ⇒ GOBL::DSig::Digest (readonly)
Digest can be used to ensure the image contained at the URL is the same one as originally intended.
64 |
# File 'lib/generated/gobl/org/image.rb', line 64 property :digest, GOBL::DSig::Digest |
#height ⇒ Integer (readonly)
Height of the image in pixels.
54 |
# File 'lib/generated/gobl/org/image.rb', line 54 property :height, Integer |
#label ⇒ String (readonly)
Label to help identify the image.
24 |
# File 'lib/generated/gobl/org/image.rb', line 24 property :label, String |
#mime ⇒ String (readonly)
Format of the image.
39 |
# File 'lib/generated/gobl/org/image.rb', line 39 property :mime, String |
#url ⇒ String (readonly)
URL of the image
29 |
# File 'lib/generated/gobl/org/image.rb', line 29 property :url, String |
#uuid ⇒ GOBL::UUID::UUID (readonly)
Unique ID of the image
19 |
# File 'lib/generated/gobl/org/image.rb', line 19 property :uuid, GOBL::UUID::UUID |
#width ⇒ Integer (readonly)
Width of the image in pixels.
59 |
# File 'lib/generated/gobl/org/image.rb', line 59 property :width, Integer |