Class: GOBL::Org::ItemCode

Inherits:
GOBL::Object show all
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

Hashme::Boolean

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

#labelString (readonly)

Local or human reference for the type of code the value represents.

Returns:

  • (String)


19
# File 'lib/gobl/org/item_code.rb', line 19

property :label, String

#valueString (readonly)

The item code’s value.

Returns:

  • (String)


24
# File 'lib/gobl/org/item_code.rb', line 24

property :value, String