Method: PureCloud::ApiClient#object_to_hash
- Defined in:
- lib/purecloud/api_client.rb
#object_to_hash(obj) ⇒ String
Convert object(non-array) to hash.
310 311 312 313 314 315 316 |
# File 'lib/purecloud/api_client.rb', line 310 def object_to_hash(obj) if obj.respond_to?(:to_hash) obj.to_hash else obj end end |