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.



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

#resolveObject



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