Created
March 13, 2019 07:30
-
-
Save NaiyaShah-BTC/be55a514826ee2014d7b4af559d2abab to your computer and use it in GitHub Desktop.
Different levels of data of hash.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Below is our complete hash example. | |
properties = { user: { profile: { name: 'Naiya' }, bank: { account: '123' } } } | |
# This is having nil in profile details. | |
properties = { user: { profile: nil } } | |
# This has no user data | |
properties = { user: nil } | |
# May be possible to have no data set to properties | |
properties = nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment