Module: Caffeinate::Dripper::Defaults::ClassMethods
- Defined in:
- lib/caffeinate/dripper/defaults.rb
Instance Method Summary collapse
-
#default(options = {}) ⇒ Object
The default options for the Campaign.
-
#defaults ⇒ Object
The defaults set in the Campaign.
Instance Method Details
#default(options = {}) ⇒ Object
The default options for the Campaign
class OrderCampaign
default mailer_class: "OrdersMailer"
end
26 27 28 29 30 |
# File 'lib/caffeinate/dripper/defaults.rb', line 26 def default( = {}) .symbolize_keys! .assert_valid_keys(:mailer_class, :mailer, :using, :batch_size, :action_class) @defaults = end |
#defaults ⇒ Object
The defaults set in the Campaign
14 15 16 |
# File 'lib/caffeinate/dripper/defaults.rb', line 14 def defaults @defaults ||= { mailer_class: inferred_mailer_class, batch_size: ::Caffeinate.config.batch_size } end |