Class: RestMan::ParamsArray::ProcessPair
- Inherits:
-
ActiveMethod::Base
- Object
- ActiveMethod::Base
- RestMan::ParamsArray::ProcessPair
- Defined in:
- lib/restman/params_array/process_pair.rb
Overview
:include: _doc/lib/restman/params_array/process_pair.rdoc
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/restman/params_array/process_pair.rb', line 9 def call case pair when Hash convert_hash_pair_to_array when Array parse_array_pair else ProcessPair.call(pair.to_a) end end |