Class: GOBL::CBC::CodeDefinition

Inherits:
Object show all
Defined in:
lib/generated/gobl/cbc/code_definition.rb

Overview

CodeDefinition describes a specific code and how it maps to a human name and description if appropriate.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL CodeDefinition structure

'https://gobl.org/draft-0/cbc/code-definition'

Instance Attribute Summary collapse

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#codeGOBL::CBC::Code (readonly)

Code for which the definition is for.



18
# File 'lib/generated/gobl/cbc/code_definition.rb', line 18

property :code, GOBL::CBC::Code

#descGOBL::I18n::String (readonly)

Description offering more details about when the code should be used.



29
# File 'lib/generated/gobl/cbc/code_definition.rb', line 29

property :desc, GOBL::I18n::String

#metaGOBL::CBC::Meta (readonly)

Meta defines any additional details that may be useful or associated with the code.



34
# File 'lib/generated/gobl/cbc/code_definition.rb', line 34

property :meta, GOBL::CBC::Meta

#nameGOBL::I18n::String (readonly)

Short name for the code, if relevant.



24
# File 'lib/generated/gobl/cbc/code_definition.rb', line 24

property :name, GOBL::I18n::String