Class: GOBL::Org::Identity
- Inherits:
-
GOBL::Object
- Object
- Struct
- GOBL::Object
- GOBL::Org::Identity
- 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
-
#code ⇒ GOBL::CBC::Code
readonly
The actual value of the identity code.
-
#country ⇒ GOBL::L10n::ISOCountryCode
readonly
Country from which the identity was issued.
-
#description ⇒ String
readonly
Description adds details about what the code could mean or imply.
-
#key ⇒ GOBL::CBC::Key
readonly
Uniquely classify this identity using a key instead of a code.
-
#label ⇒ String
readonly
Optional label useful for non-standard identities to give a bit more context.
-
#type ⇒ GOBL::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.
-
#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)
The actual value of the identity code.
43 |
# File 'lib/generated/gobl/org/identity.rb', line 43 property :code, GOBL::CBC::Code |
#country ⇒ GOBL::L10n::ISOCountryCode (readonly)
Country from which the identity was issued.
28 |
# File 'lib/generated/gobl/org/identity.rb', line 28 property :country, GOBL::L10n::ISOCountryCode |
#description ⇒ String (readonly)
Description adds details about what the code could mean or imply
49 |
# File 'lib/generated/gobl/org/identity.rb', line 49 property :description, String |
#key ⇒ GOBL::CBC::Key (readonly)
Uniquely classify this identity using a key instead of a code.
33 |
# File 'lib/generated/gobl/org/identity.rb', line 33 property :key, GOBL::CBC::Key |
#label ⇒ String (readonly)
Optional label useful for non-standard identities to give a bit more context.
23 |
# File 'lib/generated/gobl/org/identity.rb', line 23 property :label, String |
#type ⇒ GOBL::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.
38 |
# File 'lib/generated/gobl/org/identity.rb', line 38 property :type, GOBL::CBC::Code |
#uuid ⇒ String (readonly)
Universally Unique Identifier.
18 |
# File 'lib/generated/gobl/org/identity.rb', line 18 property :uuid, String |