Class: GOBL::Org::ItemCode
- Inherits:
-
GOBL::Object
- Object
- Struct
- GOBL::Object
- GOBL::Org::ItemCode
- Defined in:
- lib/gobl/org/item_code.rb
Overview
ItemCode contains a value and optional label property that means additional codes can be added to an item.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL ItemCode structure
'https://gobl.org/draft-0/org/item#/$defs/ItemCode'
Constants included from Hashme
Instance Attribute Summary collapse
-
#label ⇒ String
readonly
Local or human reference for the type of code the value represents.
-
#value ⇒ String
readonly
The item code’s value.
Method Summary
Methods inherited from GOBL::Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#label ⇒ String (readonly)
Local or human reference for the type of code the value represents.
19 |
# File 'lib/gobl/org/item_code.rb', line 19 property :label, String |
#value ⇒ String (readonly)
The item code’s value.
24 |
# File 'lib/gobl/org/item_code.rb', line 24 property :value, String |