Class: Lutaml::Model::Schema::Renderers::Union

Inherits:
Base
  • Object
show all
Defined in:
lib/lutaml/model/schema/renderers/union.rb

Overview

Renders a Definitions::UnionType into a Lutaml::Model::Type::Value subclass with a cast body whose strategy is chosen from the spec.

Instance Method Summary collapse

Methods inherited from Base

#initialize, render

Constructor Details

This class inherits a constructor from Lutaml::Model::Schema::Renderers::Base

Instance Method Details

#renderObject



13
14
15
# File 'lib/lutaml/model/schema/renderers/union.rb', line 13

def render
  Templates::UNION_TYPE.result(binding)
end