Class: Dcc::CommonElements

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/dcc/common_elements.rb

Overview

Dcc::CommonElements is the base class for all DCC element wrappers in a version namespace. It provides the shared lutaml_default_register override that version wrappers inherit, so they don't each have to declare it themselves.

Version modules (Dcc::V2, Dcc::V3) subclass this to define their own CommonElements with a lutaml_default_register matching their CONTEXT_ID.

Class Method Summary collapse

Class Method Details

.lutaml_default_registerObject

Default context; version wrappers override this via subclassing.



16
17
18
# File 'lib/dcc/common_elements.rb', line 16

def self.lutaml_default_register
  :dcc_v3
end