Class: Dragonfly::Job::Step
Instance Attribute Summary (collapse)
-
- (Object) args
readonly
Returns the value of attribute args.
-
- (Object) job
readonly
Returns the value of attribute job.
Class Method Summary (collapse)
-
+ (Object) abbreviation
Dragonfly::Job::Fetch -> 'f'.
-
+ (Object) basename
Dragonfly::Job::Fetch -> 'Fetch'.
-
+ (Object) step_name
Dragonfly::Job::Fetch -> :fetch.
Instance Method Summary (collapse)
-
- (Object) init
To be overridden.
-
- (Step) initialize(job, *args)
constructor
A new instance of Step.
- - (Object) inspect
- - (Object) to_a
Constructor Details
- (Step) initialize(job, *args)
Returns a new instance of Step
44 45 46 47 |
# File 'lib/dragonfly/job.rb', line 44 def initialize(job, *args) @job, @args = job, args init end |
Instance Attribute Details
- (Object) args (readonly)
Returns the value of attribute args
52 53 54 |
# File 'lib/dragonfly/job.rb', line 52 def args @args end |
- (Object) job (readonly)
Returns the value of attribute job
52 53 54 |
# File 'lib/dragonfly/job.rb', line 52 def job @job end |
Class Method Details
+ (Object) abbreviation
Dragonfly::Job::Fetch -> 'f'
39 40 41 |
# File 'lib/dragonfly/job.rb', line 39 def abbreviation @abbreviation ||= basename.scan(/[A-Z]/).join.downcase end |
+ (Object) basename
Dragonfly::Job::Fetch -> 'Fetch'
31 32 33 |
# File 'lib/dragonfly/job.rb', line 31 def basename @basename ||= name.split('::').last end |
+ (Object) step_name
Dragonfly::Job::Fetch -> :fetch
35 36 37 |
# File 'lib/dragonfly/job.rb', line 35 def step_name @step_name ||= basename.gsub(/[A-Z]/){ "_#{$&.downcase}" }.sub('_','').to_sym end |