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
Constructor Details
This class inherits a constructor from OpenEHR::RM::Factory
Class Method Details
.create(param) ⇒ Object
600 601 602 |
# File 'lib/openehr/rm/factory.rb', line 600 def create(param) OpenEHR::RM::Composition::Composition.new(param) end |
.create_from_json(json) ⇒ Object
604 605 606 607 |
# File 'lib/openehr/rm/factory.rb', line 604 def create_from_json(json) hash = JSON.parse(json, max_nesting: false, symbolize_names: true) OpenEHR::RM::Composition::Composition.new(params(hash)) end |