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

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

Instance Attribute Summary collapse

Instance Attribute Details

#job_idString

Job ID. Default is env["ID"].

Returns:

  • (String)

23
24
25
# File 'lib/never_bounce/cli/script/feature/requires_job_id.rb', line 23

def job_id
  @job_id ||= env[k = "ID"] or raise UsageError, "Job ID not given, use `#{k}=`"
end