adding .each and .to_json to Snort::Rule