lib/rumx/beans/error.rb in rumx-0.0.8 vs lib/rumx/beans/error.rb in rumx-0.1.0

- old
+ new

@@ -2,10 +2,10 @@ module Beans class Error include Bean bean_attr_reader :error_count, :integer, 'Number of times the measured block has raised an exception' - bean_attr_embed_list :errors, 'List of the last occurring errors' + bean_attr_reader :errors, :list, 'List of the last occurring errors', :list_type => :bean def initialize(opts={}) @errors = [] @max_errors = (opts[:max_errors] || 1).to_i end