Module: Pay::Billable::SyncEmail

Extended by:
ActiveSupport::Concern
Defined in:
lib/pay/billable/sync_email.rb

Instance Method Summary collapse

Instance Method Details

#should_sync_email_with_processor?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/pay/billable/sync_email.rb', line 21

def should_sync_email_with_processor?
  try(:saved_change_to_email?)
end

#sync_email_with_processorObject



25
26
27
# File 'lib/pay/billable/sync_email.rb', line 25

def sync_email_with_processor
  send("update_#{processor}_email!")
end