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

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#nested_hash_sourceObject



69
70
71
# File 'lib/disposable/twin/sync.rb', line 69

def nested_hash_source
  self
end

#to_nested_hashObject



65
66
67
# File 'lib/disposable/twin/sync.rb', line 65

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