Hash class ruby code example
Example 1: how to access hash value ruby
my_hash.values_at("key1", "key2") #=> ["value1", "value2"]
Example 2: how to access hash value ruby
my_hash["key"] #=> "value"
Example 3: how ruby methods take in a hash of attributes
def create(name:, age:, gender:) #Main lesson on this line
some_variable = SomeClass.new(name, age, gender)
some_variable.save #save is an instance method undefined here
some_variable
end