Class: Etna::Cwl::RecordType::Field::FieldLoader

Inherits:
Loader
  • Object
show all
Defined in:
lib/etna/cwl.rb

Instance Method Summary collapse

Methods inherited from Loader

#as_array, #as_mapped_array, #map, #optional, #or

Instance Method Details

#load(val) ⇒ Object



381
382
383
384
385
386
387
# File 'lib/etna/cwl.rb', line 381

def load(val)
  RecordLoader.new(Field, {
      name: PrimitiveLoader::STRING,
      type: TypedDSLLoader::WITH_UNIONS_TYPE_LOADER,
      doc: PrimitiveLoader::STRING.optional,
  }).load(val)
end