Module: Caffeinate::Dripper::Campaign

Included in:
Base
Defined in:
lib/caffeinate/dripper/campaign.rb

Overview

Campaign methods for ‘Caffeinate::Dripper`.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

:nodoc:



8
9
10
# File 'lib/caffeinate/dripper/campaign.rb', line 8

def self.included(klass)
  klass.extend ClassMethods
end

Instance Method Details

#campaignObject

The campaign for this Dripper

Returns:

  • ‘Caffeinate::Campaign`



15
16
17
# File 'lib/caffeinate/dripper/campaign.rb', line 15

def campaign
  self.class.caffeinate_campaign
end