Module: Caffeinate

Extended by:
Perform
Defined in:
app/models/caffeinate/mailing.rb,
lib/caffeinate.rb,
lib/caffeinate/drip.rb,
lib/caffeinate/engine.rb,
lib/caffeinate/helpers.rb,
lib/caffeinate/perform.rb,
lib/caffeinate/version.rb,
lib/caffeinate/url_helpers.rb,
lib/caffeinate/action_proxy.rb,
lib/caffeinate/dripper/base.rb,
lib/caffeinate/dripper/drip.rb,
lib/caffeinate/configuration.rb,
lib/caffeinate/deliver_async.rb,
lib/caffeinate/drip_evaluator.rb,
app/models/caffeinate/campaign.rb,
lib/caffeinate/dripper/perform.rb,
lib/caffeinate/message_handler.rb,
lib/caffeinate/periodical_drip.rb,
lib/caffeinate/dripper/batching.rb,
lib/caffeinate/dripper/campaign.rb,
lib/caffeinate/dripper/defaults.rb,
lib/caffeinate/dripper/delivery.rb,
lib/caffeinate/dripper/callbacks.rb,
lib/caffeinate/dripper/rescuable.rb,
lib/caffeinate/dripper/inferences.rb,
lib/caffeinate/dripper/periodical.rb,
lib/caffeinate/dripper/subscriber.rb,
lib/caffeinate/dripper_collection.rb,
lib/caffeinate/schedule_evaluator.rb,
lib/caffeinate/action_mailer/observer.rb,
lib/caffeinate/action_mailer/extension.rb,
lib/caffeinate/active_record/extension.rb,
lib/caffeinate/dripper/drip_collection.rb,
app/models/caffeinate/application_record.rb,
lib/caffeinate/action_mailer/interceptor.rb,
lib/generators/caffeinate/views_generator.rb,
lib/generators/caffeinate/mailer_generator.rb,
app/models/caffeinate/campaign_subscription.rb,
lib/generators/caffeinate/install_generator.rb,
app/controllers/caffeinate/application_controller.rb,
app/controllers/caffeinate/campaign_subscriptions_controller.rb,
lib/caffeinate/rspec/matchers/subscribe_to_caffeinate_campaign.rb,
lib/caffeinate/rspec/matchers/be_subscribed_to_caffeinate_campaign.rb,
lib/caffeinate/rspec/matchers/end_caffeinate_campaign_subscription.rb,
lib/caffeinate/rspec/matchers/unsubscribe_from_caffeinate_campaign.rb

Overview

Schema Information

Table name: caffeinate_campaign_subscriptions

id                     :integer          not null, primary key
caffeinate_campaign_id :integer          not null
subscriber_type        :string           not null
subscriber_id          :string           not null
user_type              :string
user_id                :string
token                  :string           not null
ended_at               :datetime
unsubscribed_at        :datetime
created_at             :datetime         not null
updated_at             :datetime         not null

Defined Under Namespace

Modules: ActionMailer, ActiveRecord, DeliverAsync, Dripper, Generators, Helpers, Perform, RSpec Classes: ActionProxy, ApplicationController, ApplicationRecord, Campaign, CampaignSubscription, CampaignSubscriptionsController, Configuration, Drip, DripEvaluator, DripperCollection, Engine, InvalidState, Mailing, MessageHandler, OptionEvaluator, PeriodicalDrip, ScheduleEvaluator, UrlHelpers

Constant Summary collapse

VERSION =
"2.5.0"

Class Method Summary collapse

Methods included from Perform

perform!

Class Method Details

.configObject

Global configuration



34
35
36
# File 'lib/caffeinate.rb', line 34

def self.config
  @config ||= Configuration.new
end

.dripper_collectionObject



29
30
31
# File 'lib/caffeinate.rb', line 29

def self.dripper_collection
  @dripper_collection ||= DripperCollection.new
end

.setup {|config| ... } ⇒ Object

Yields the configuration

Yields:



39
40
41
# File 'lib/caffeinate.rb', line 39

def self.setup
  yield config
end

.test_mode!Object



43
44
45
# File 'lib/caffeinate.rb', line 43

def self.test_mode!

end