Class: GOBL::CBC::KeyDefinition
- Defined in:
- lib/generated/gobl/cbc/key_definition.rb
Overview
KeyDefinition defines properties of a key that is specific for a regime.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL KeyDefinition structure
'https://gobl.org/draft-0/cbc/key-definition'
Instance Attribute Summary collapse
-
#desc ⇒ GOBL::I18n::String
readonly
Description offering more details about when the key should be used.
-
#key ⇒ GOBL::CBC::Key
readonly
Actual key value.
-
#map ⇒ GOBL::CBC::CodeMap
readonly
Map helps map local keys to specific codes, useful for converting the described key into a local code.
-
#meta ⇒ GOBL::CBC::Meta
readonly
Meta defines any additional details that may be useful or associated with the key.
-
#name ⇒ GOBL::I18n::String
readonly
Short name for the key.
-
#pattern ⇒ String
readonly
Pattern is used to validate the key value instead of using a fixed value from the code or key definitions.
-
#values ⇒ Array<GOBL::CBC::ValueDefinition>
readonly
Values defines the possible values associated with the key.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#desc ⇒ GOBL::I18n::String (readonly)
Description offering more details about when the key should be used.
30 |
# File 'lib/generated/gobl/cbc/key_definition.rb', line 30 property :desc, GOBL::I18n::String |
#key ⇒ GOBL::CBC::Key (readonly)
Actual key value.
18 |
# File 'lib/generated/gobl/cbc/key_definition.rb', line 18 property :key, GOBL::CBC::Key |
#map ⇒ GOBL::CBC::CodeMap (readonly)
Map helps map local keys to specific codes, useful for converting the described key into a local code.
50 |
# File 'lib/generated/gobl/cbc/key_definition.rb', line 50 property :map, GOBL::CBC::CodeMap |
#meta ⇒ GOBL::CBC::Meta (readonly)
Meta defines any additional details that may be useful or associated with the key.
35 |
# File 'lib/generated/gobl/cbc/key_definition.rb', line 35 property :meta, GOBL::CBC::Meta |
#name ⇒ GOBL::I18n::String (readonly)
Short name for the key.
24 |
# File 'lib/generated/gobl/cbc/key_definition.rb', line 24 property :name, GOBL::I18n::String |
#pattern ⇒ String (readonly)
Pattern is used to validate the key value instead of using a fixed value from the code or key definitions.
45 |
# File 'lib/generated/gobl/cbc/key_definition.rb', line 45 property :pattern, String |
#values ⇒ Array<GOBL::CBC::ValueDefinition> (readonly)
Values defines the possible values associated with the key.
40 |
# File 'lib/generated/gobl/cbc/key_definition.rb', line 40 property :values, [GOBL::CBC::ValueDefinition] |