Class: WeakSwaggerParameters::Services::WeakParametersOptionsAdapter
- Inherits:
-
Object
- Object
- WeakSwaggerParameters::Services::WeakParametersOptionsAdapter
- Defined in:
- lib/weak_swagger_parameters/services/weak_parameters_options_adapter.rb
Constant Summary collapse
- MAX_VALUE =
(2**(0.size * 8 - 2) - 1)
- MIN_VALUE =
- 2))
Class Method Summary collapse
Class Method Details
.adapt(options) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/weak_swagger_parameters/services/weak_parameters_options_adapter.rb', line 9 def self.adapt() result = {} result[:strong] = true result[:required] = [:required] result[:only] = [:enum] if [:enum].present? result = result.merge(()) result end |