Class: Puppet::Pops::Serialization::ObjectHashBuilder

Inherits:
Builder show all
Defined in:
lib/puppet/pops/serialization/from_data_converter.rb

Instance Method Summary collapse

Methods inherited from Builder

#[], #[]=

Constructor Details

#initialize(instance) ⇒ ObjectHashBuilder

Returns a new instance of ObjectHashBuilder


32
33
34
35
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 32

def initialize(instance)
  super({})
  @instance = instance
end

Instance Method Details

#resolveObject


37
38
39
40
# File 'lib/puppet/pops/serialization/from_data_converter.rb', line 37

def resolve
  @instance._pcore_init_from_hash(super)
  @instance
end