Fix Resource initialization not working on Ruby 2.0