Class: Interactify::Async::JobMaker
- Inherits:
-
Object
- Object
- Interactify::Async::JobMaker
- Defined in:
- lib/interactify/async/job_maker.rb
Instance Attribute Summary collapse
-
#container_klass ⇒ Object
readonly
Returns the value of attribute container_klass.
-
#klass_suffix ⇒ Object
readonly
Returns the value of attribute klass_suffix.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #async_job_klass ⇒ Object
-
#initialize(container_klass:, opts:, klass_suffix:, method_name: :call!) ⇒ JobMaker
constructor
A new instance of JobMaker.
Constructor Details
#initialize(container_klass:, opts:, klass_suffix:, method_name: :call!) ⇒ JobMaker
Returns a new instance of JobMaker.
11 12 13 14 15 16 |
# File 'lib/interactify/async/job_maker.rb', line 11 def initialize(container_klass:, opts:, klass_suffix:, method_name: :call!) @container_klass = container_klass @opts = opts @method_name = method_name @klass_suffix = klass_suffix end |
Instance Attribute Details
#container_klass ⇒ Object (readonly)
Returns the value of attribute container_klass.
9 10 11 |
# File 'lib/interactify/async/job_maker.rb', line 9 def container_klass @container_klass end |
#klass_suffix ⇒ Object (readonly)
Returns the value of attribute klass_suffix.
9 10 11 |
# File 'lib/interactify/async/job_maker.rb', line 9 def klass_suffix @klass_suffix end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
9 10 11 |
# File 'lib/interactify/async/job_maker.rb', line 9 def method_name @method_name end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
9 10 11 |
# File 'lib/interactify/async/job_maker.rb', line 9 def opts @opts end |
Instance Method Details
#async_job_klass ⇒ Object
53 54 55 |
# File 'lib/interactify/async/job_maker.rb', line 53 def async_job_klass JobKlass.new(container_klass:, klass_suffix:).async_job_klass end |