Class: GOBL::Org::Image

Inherits:
GOBL::Object show all
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

Method Summary

Methods inherited from GOBL::Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#altString (readonly)

Alternative text if the image cannot be shown.

Returns:

  • (String)


49
# File 'lib/generated/gobl/org/image.rb', line 49

property :alt, String

#dataString (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.

Returns:

  • (String)


34
# File 'lib/generated/gobl/org/image.rb', line 34

property :data, String

#descriptionString (readonly)

Details of what the image represents.

Returns:

  • (String)


44
# File 'lib/generated/gobl/org/image.rb', line 44

property :description, String

#digestGOBL::DSig::Digest (readonly)

Digest can be used to ensure the image contained at the URL is the same one as originally intended.

Returns:



64
# File 'lib/generated/gobl/org/image.rb', line 64

property :digest, GOBL::DSig::Digest

#heightInteger (readonly)

Height of the image in pixels.

Returns:

  • (Integer)


54
# File 'lib/generated/gobl/org/image.rb', line 54

property :height, Integer

#labelString (readonly)

Label to help identify the image.

Returns:

  • (String)


24
# File 'lib/generated/gobl/org/image.rb', line 24

property :label, String

#mimeString (readonly)

Format of the image.

Returns:

  • (String)


39
# File 'lib/generated/gobl/org/image.rb', line 39

property :mime, String

#urlString (readonly)

URL of the image

Returns:

  • (String)


29
# File 'lib/generated/gobl/org/image.rb', line 29

property :url, String

#uuidGOBL::UUID::UUID (readonly)

Unique ID of the image

Returns:



19
# File 'lib/generated/gobl/org/image.rb', line 19

property :uuid, GOBL::UUID::UUID

#widthInteger (readonly)

Width of the image in pixels.

Returns:

  • (Integer)


59
# File 'lib/generated/gobl/org/image.rb', line 59

property :width, Integer