Method: DocuSign_Maestro::ApiClient#object_to_hash

Defined in:
lib/docusign_maestro/client/api_client.rb

#object_to_hash(obj) ⇒ String

Convert object(non-array) to hash.

Parameters:

  • obj (Object)

    object to be converted into JSON string

Returns:

  • (String)

    JSON string representation of the object

[View source]

363
364
365
366
367
368
369
# File 'lib/docusign_maestro/client/api_client.rb', line 363

def object_to_hash(obj)
  if obj.respond_to?(:to_hash)
    obj.to_hash
  else
    obj
  end
end