module OnebusawaySDK::Internal::Util
def coerce_hash(input)
-
(Hash{Object=>Object}, Object)
-
Parameters:
-
input
(Object
) --
Other tags:
- Api: - private
def coerce_hash(input) case input in NilClass | Array | Set | Enumerator | StringIO | IO input else input.respond_to?(:to_h) ? input.to_h : input end end