Class: TableSync::EventActions::DataWrapper::Base

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/table_sync/event_actions/data_wrapper/base.rb

Direct Known Subclasses

Destroy, Update

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_data) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/table_sync/event_actions/data_wrapper/base.rb', line 8

def initialize(event_data)
  @event_data = event_data
end

Instance Attribute Details

#event_dataObject (readonly)

Returns the value of attribute event_data.



6
7
8
# File 'lib/table_sync/event_actions/data_wrapper/base.rb', line 6

def event_data
  @event_data
end

Instance Method Details

#destroy?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/table_sync/event_actions/data_wrapper/base.rb', line 16

def destroy?
  false
end

#typeObject

Raises:

  • (NoMethodError)


12
13
14
# File 'lib/table_sync/event_actions/data_wrapper/base.rb', line 12

def type
  raise NoMethodError # NOTE: for clarity
end

#update?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/table_sync/event_actions/data_wrapper/base.rb', line 20

def update?
  false
end