Module: Disposable::Twin::Sync::SkipGetter

Defined in:
lib/disposable/twin/sync.rb

Overview

Include this won’t use the getter #title in #sync but read directly from @fields.

Instance Method Summary collapse

Instance Method Details

#nested_hash_sourceObject



155
156
157
# File 'lib/disposable/twin/sync.rb', line 155

def nested_hash_source
  OpenStruct.new(@fields)
end

#sync_read(dfn) ⇒ Object



151
152
153
# File 'lib/disposable/twin/sync.rb', line 151

def sync_read(dfn)
  @fields[dfn[:name]]
end