Skip to Content Skip to Search
Methods
C
E
N
Included Modules

Attributes

[R] event

Class Public methods

events()

# File app/lib/stripe/event_handlers/customer_subscription_trial_will_end.rb, line 9
def events
  ["customer.subscription.trial_will_end"]
end

new(event)

# File app/lib/stripe/event_handlers/customer_subscription_trial_will_end.rb, line 14
def initialize(event)
  @event = event
end

Instance Public methods

call()

# File app/lib/stripe/event_handlers/customer_subscription_trial_will_end.rb, line 18
def call
  return unless self.class.events.include?(event.type)

  ::Api::TrialWillEndCommunicator.new(stripe_subscription.id).send_email
end