Class: StripeModelCallbacks::EventMockerService

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args:, name:, scope:) ⇒ EventMockerService

Returns a new instance of EventMockerService.



4
5
6
7
8
9
10
11
# File 'app/services/stripe_model_callbacks/event_mocker_service.rb', line 4

def initialize(args:, name:, scope:)
  @args = args
  @name = name
  @scope = scope

  bypass_event_signature(payload)
  post_event
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



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

def args
  @args
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#scopeObject (readonly)

Returns the value of attribute scope.



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

def scope
  @scope
end