Class: TableSync::EventActions::DataWrapper::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/table_sync/event_actions/data_wrapper/update.rb

Instance Attribute Summary

Attributes inherited from Base

#event_data

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from TableSync::EventActions::DataWrapper::Base

Instance Method Details

#destroy?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/table_sync/event_actions/data_wrapper/update.rb', line 14

def destroy?
  false
end

#eachObject



8
9
10
11
12
# File 'lib/table_sync/event_actions/data_wrapper/update.rb', line 8

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

#typeObject



4
5
6
# File 'lib/table_sync/event_actions/data_wrapper/update.rb', line 4

def type
  :update
end

#update?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/table_sync/event_actions/data_wrapper/update.rb', line 18

def update?
  true
end