Method: SimpleJSONAPIClient::Utils.hash_dig
- Defined in:
- lib/simple_jsonapi_client/utils.rb
.hash_dig(hash, *keys) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/simple_jsonapi_client/utils.rb', line 15 def hash_dig(hash, *keys) if hash.respond_to?(:dig) hash.dig(*keys) else dig(hash, keys) end end |