Renamed ratio() method to by_name()
Renamed ratio() method to by_name()
Renamed to by_name
Added a by_ratio() test
Added by_ratio()