Class: SpecialDelivery::BaseEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/special_delivery/base_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ BaseEvent

Returns a new instance of BaseEvent.



5
6
7
# File 'lib/special_delivery/base_event.rb', line 5

def initialize(params)
  @params = params || {}
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



3
4
5
# File 'lib/special_delivery/base_event.rb', line 3

def params
  @params
end

Instance Method Details

#issue_callbackObject



9
10
11
# File 'lib/special_delivery/base_event.rb', line 9

def issue_callback
  delivery.callback(callback_method)
end