Ruby script showing usage of attribute methods