Skip to content

Instantly share code, notes, and snippets.

@NaiyaShah-BTC
Created March 13, 2019 07:30
Show Gist options
  • Select an option

  • Save NaiyaShah-BTC/be55a514826ee2014d7b4af559d2abab to your computer and use it in GitHub Desktop.

Select an option

Save NaiyaShah-BTC/be55a514826ee2014d7b4af559d2abab to your computer and use it in GitHub Desktop.
Different levels of data of hash.
# 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