Optimize call to retrieve all routes.
Clean code for map method.
Clean code for map method.
Clean each method syntax.
Replace id= and logger= methods with attr_writer.
Merge pull request #1 from tejas-rawal/optimize

Optimize