Method: YNAB::ApiClient#object_to_hash
- Defined in:
- lib/ynab/api_client.rb
#object_to_hash(obj) ⇒ String
Convert object(non-array) to hash.
364 365 366 367 368 369 370 |
# File 'lib/ynab/api_client.rb', line 364 def object_to_hash(obj) if obj.respond_to?(:to_hash) obj.to_hash else obj end end |