Looking for a way to populate instance variables in a new object. For instance:
p = Company.new(:company_name => "Alpha Company", :company_address => "123 Yonge Street", :company_city => "Toronto", :company_postal_code => "M4T 1A1", :company_phone => "416-456-7890", :company_url => "anybiz.biz")
Named parameters report that that statement has wrong number of arguments(given 1, expected 0). I just want to create an object and populate it as easily as possible. There has to be a way.
Also, keep in mind that I'm trying to approach this systematically as I'm writing some methods to abstract adoption of values outside of the object (in a hash) to the ivars inside instances.
Any insight appreciated. Cheers