Sha256: 2e9a035c85d278f3267a4f92982fafbf39b504ce2ab9cd29a7635aa2909bb135

Contents?: true

Size: 361 Bytes

Versions: 6

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

class TableSync::EventActions::DataWrapper::Update < TableSync::EventActions::DataWrapper::Base
  def type
    :update
  end

  def each
    event_data.each_pair do |model_klass, changed_models_attrs|
      yield([model_klass, changed_models_attrs])
    end
  end

  def destroy?
    false
  end

  def update?
    true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
table_sync-2.3.0 lib/table_sync/event_actions/data_wrapper/update.rb
table_sync-2.2.0 lib/table_sync/event_actions/data_wrapper/update.rb
table_sync-2.1.0 lib/table_sync/event_actions/data_wrapper/update.rb
table_sync-2.0.0 lib/table_sync/event_actions/data_wrapper/update.rb
table_sync-1.13.1 lib/table_sync/event_actions/data_wrapper/update.rb
table_sync-1.13.0 lib/table_sync/event_actions/data_wrapper/update.rb