Class: Puppet::Pops::Serialization::ObjectHashBuilder
- Defined in:
- lib/puppet/pops/serialization/from_data_converter.rb
Instance Method Summary collapse
-
#initialize(instance) ⇒ ObjectHashBuilder
constructor
A new instance of ObjectHashBuilder.
- #resolve ⇒ Object
Methods inherited from Builder
Constructor Details
#initialize(instance) ⇒ ObjectHashBuilder
Returns a new instance of ObjectHashBuilder.
35 36 37 38 |
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 35 def initialize(instance) super({}) @instance = instance end |
Instance Method Details
#resolve ⇒ Object
40 41 42 43 |
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 40 def resolve @instance._pcore_init_from_hash(super) @instance end |