Class: StripeModelCallbacks::BaseEventService

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/stripe_model_callbacks/base_event_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

advisory_lock_id, advisory_lock_name, execute_with_advisory_lock!, reported_execute!, with_exception_notifications

Constructor Details

#initialize(event: nil, object: nil) ⇒ BaseEventService

Returns a new instance of BaseEventService.



4
5
6
7
8
# File 'app/services/stripe_model_callbacks/base_event_service.rb', line 4

def initialize(event: nil, object: nil)
  @event = event
  @object = object
  @object ||= event.data.object
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



2
3
4
# File 'app/services/stripe_model_callbacks/base_event_service.rb', line 2

def event
  @event
end

#objectObject (readonly)

Returns the value of attribute object.



2
3
4
# File 'app/services/stripe_model_callbacks/base_event_service.rb', line 2

def object
  @object
end