Method: PulpGemClient::ApiClient#object_to_hash
- Defined in:
- lib/pulp_gem_client/api_client.rb
#object_to_hash(obj) ⇒ String
Convert object(non-array) to hash.
410 411 412 413 414 415 416 |
# File 'lib/pulp_gem_client/api_client.rb', line 410 def object_to_hash(obj) if obj.respond_to?(:to_hash) obj.to_hash else obj end end |