Module: Hertz::Twilio

Defined in:
lib/hertz/twilio.rb,
lib/hertz/twilio/engine.rb,
lib/hertz/twilio/version.rb,
lib/generators/hertz/twilio/install_generator.rb,
app/jobs/hertz/twilio/notification_delivery_job.rb

Defined Under Namespace

Classes: Engine, InstallGenerator, NotificationDeliveryJob

Constant Summary collapse

VERSION =
'2.1.0'

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Hertz::Twilio)

    the object that the method was called on



14
15
16
# File 'lib/hertz/twilio.rb', line 14

def configure
  yield(self)
end

.deliver_notification(notification) ⇒ Object



18
19
20
# File 'lib/hertz/twilio.rb', line 18

def deliver_notification(notification)
  Hertz::Twilio::NotificationDeliveryJob.perform_later(notification)
end