I have following hash
hash = {
"some value": "abc",
"other value": "dcd"
}
The key value is coming from an object Test
and I can access it as Test.key
I am trying to access hash value from the key which is coming from Test.key. I tried to access the key value from hash hash[:Test.key]
but that returns NoMethodError Exception: undefined method 'key' for :activity:Symbol
How could i access the hash value?