Module: Hertz

Defined in:
lib/hertz.rb,
lib/hertz/engine.rb,
lib/hertz/version.rb,
lib/hertz/notifiable.rb,
app/models/hertz/delivery.rb,
app/models/hertz/notification.rb,
lib/hertz/notification_deliverer.rb,
lib/generators/hertz/install_generator.rb

Defined Under Namespace

Modules: Notifiable Classes: Delivery, Engine, InstallGenerator, Notification, NotificationDeliverer

Constant Summary collapse

VERSION =
'2.0.0'

Class Method Summary collapse

Class Method Details

.common_couriersObject



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

def common_couriers
  @common_couriers ||= []
end

.common_couriers=(couriers) ⇒ Object



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

def common_couriers=(couriers)
  @common_couriers = [couriers].flatten.map(&:to_sym)
end

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Hertz)

    the object that the method was called on



10
11
12
# File 'lib/hertz.rb', line 10

def configure
  yield self
end