Module: NeverBounce::CLI::Script::Feature::RequiresJobId

Defined in:
lib/never_bounce/cli/script/feature/requires_job_id.rb

Overview

Common traits for scripts which require job ID.

See Also:

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.load(owner) ⇒ nil

Parameters:

  • owner (Class)

Returns:

  • (nil)

8
9
10
11
12
13
14
15
16
17
# File 'lib/never_bounce/cli/script/feature/requires_job_id.rb', line 8

def self.load(owner)
  return if owner < InstanceMethods
  owner.send(:include, InstanceMethods)

  owner.class_eval do
    attr_writer :job_id

    envar "ID", "Job ID", ["276816"]
  end
end