Method: DatadogAPIClient::APIClient#object_to_hash
- Defined in:
- lib/datadog_api_client/api_client.rb
#object_to_hash(obj) ⇒ String
Convert object(non-array) to hash.
460 461 462 463 464 465 466 |
# File 'lib/datadog_api_client/api_client.rb', line 460 def object_to_hash(obj) if obj.respond_to?(:to_hash) obj.to_hash else obj end end |