Sha256: a1fa2b04c8051c295e2c5c629996b9a07e35cb1a75898f9c972449780bb44f50
Contents?: true
Size: 557 Bytes
Versions: 4
Compression:
Stored size: 557 Bytes
Contents
module RingCentralSdk module REST module Request module Inflator # ContactInfo class will inflate contact info to array class ContactInfo def inflate_to_array(any = nil) contacts = [] if any.is_a?(Array) contacts = any elsif any.is_a?(Hash) contacts = [any] elsif any.is_a?(String) || any.is_a?(Integer) contacts = [{ phoneNumber: any }] end contacts end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems