Class: GOBL::Org::Identity

Inherits:
GOBL::Object show all
Defined in:
lib/generated/gobl/org/identity.rb

Overview

Identity is used to define a code for a specific context.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL Identity structure

'https://gobl.org/draft-0/org/identity'

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

#codeGOBL::CBC::Code (readonly)

The actual value of the identity code.

Returns:



38
# File 'lib/generated/gobl/org/identity.rb', line 38

property :code, GOBL::CBC::Code

#descriptionString (readonly)

Description adds details about what the code could mean or imply

Returns:

  • (String)


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

property :description, String

#keyGOBL::CBC::Key (readonly)

Uniquely classify this identity using a key instead of a code.

Returns:



28
# File 'lib/generated/gobl/org/identity.rb', line 28

property :key, GOBL::CBC::Key

#labelString (readonly)

Optional label useful for non-standard identities to give a bit more context.

Returns:

  • (String)


23
# File 'lib/generated/gobl/org/identity.rb', line 23

property :label, String

#typeGOBL::CBC::Code (readonly)

The type of Code being represented and usually specific for a particular context, country, or tax regime, and cannot be used alongside the key.

Returns:



33
# File 'lib/generated/gobl/org/identity.rb', line 33

property :type, GOBL::CBC::Code

#uuidString (readonly)

Universally Unique Identifier.

Returns:

  • (String)


18
# File 'lib/generated/gobl/org/identity.rb', line 18

property :uuid, String