Class: OpenEHR::RM::CompositionFactory
- Defined in:
- lib/openehr/rm/factory.rb
Constant Summary
Constants inherited from Factory
Factory::NON_POLYMORPHIC_TYPE_FOR_KEY
Class Method Summary collapse
Methods inherited from Factory
#build, create, #initialize, params
Constructor Details
This class inherits a constructor from OpenEHR::RM::Factory
Class Method Details
.create_from_json(json) ⇒ Object
600 601 602 603 |
# File 'lib/openehr/rm/factory.rb', line 600 def create_from_json(json) hash = JSON.parse(json, max_nesting: false, symbolize_names: true) OpenEHR::RM::Composition::Composition.new(params(hash)) end |