Module: Olyx::Guardrails::Rails::JobArgument
- Defined in:
- lib/olyx/guardrails/rails/job_argument.rb
Overview
Extracts a declared positional or keyword Active Job argument.
Class Method Summary collapse
Class Method Details
.call(arguments, selector) ⇒ Object
10 11 12 13 14 |
# File 'lib/olyx/guardrails/rails/job_argument.rb', line 10 def call(arguments, selector) return arguments.fetch(selector) if selector.is_a?(Integer) keyword(arguments, selector) end |