Method: MoneyKit::ApiClient#object_to_hash
- Defined in:
- lib/moneykit/api_client.rb
#object_to_hash(obj) ⇒ String
Convert object(non-array) to hash.
397 398 399 400 401 402 403 |
# File 'lib/moneykit/api_client.rb', line 397 def object_to_hash(obj) if obj.respond_to?(:to_hash) obj.to_hash else obj end end |