Module: ServiceOperator::Helpers::ClassMethods
- Defined in:
- lib/service_operator/helpers.rb
Instance Method Summary collapse
Instance Method Details
#call(args = {}) ⇒ Object
37 38 39 |
# File 'lib/service_operator/helpers.rb', line 37 def call(args={}) new(**args).call end |
#required_context(*args) ⇒ Object
Examples
class MyOperator
include ServiceOperator::Helpers
required_context :week
end
33 34 35 |
# File 'lib/service_operator/helpers.rb', line 33 def required_context(*args) @required_params = args.flatten end |
#required_params ⇒ Object
21 22 23 |
# File 'lib/service_operator/helpers.rb', line 21 def required_params @required_params ||= [] end |