Module: Disposable::Twin::Sync::ToNestedHash

Included in:
Disposable::Twin::Sync
Defined in:
lib/disposable/twin/sync.rb

Overview

TODO: simplify that using a decent pipeline from Representable.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#nested_hash_sourceObject



80
81
82
# File 'lib/disposable/twin/sync.rb', line 80

def nested_hash_source
  self
end

#to_nested_hashObject



76
77
78
# File 'lib/disposable/twin/sync.rb', line 76

def to_nested_hash(*)
  self.class.nested_hash_representer.new(nested_hash_source).to_hash
end