Attr-Accessors in cookbook.rb

Replaced getters & setters