Another thing which I want to add here is that the in the test case of this file, the symbols are used instead of strings in the attributes method definition..Please have a look at the attributes_methods_test.rb file.