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_source ⇒ Object
79 80 81 |
# File 'lib/disposable/twin/sync.rb', line 79 def nested_hash_source self end |
#to_nested_hash ⇒ Object
75 76 77 |
# File 'lib/disposable/twin/sync.rb', line 75 def to_nested_hash(*) self.class.nested_hash_representer.new(nested_hash_source).to_hash end |