Class: Etna::Cwl::RecordType::RecordTypeLoader
- Inherits:
-
Object
- Object
- Etna::Cwl::RecordType::RecordTypeLoader
- Defined in:
- lib/etna/cwl.rb
Instance Method Summary collapse
Instance Method Details
#load(val) ⇒ Object
354 355 356 357 358 359 |
# File 'lib/etna/cwl.rb', line 354 def load(val) RecordLoader.new(RecordType, { type: EnumLoader.new("record"), fields: Field::FieldLoader.new.as_mapped_array('name', 'type') }).load(val) end |