lib/harness/measurement.rb in harness-0.6.0 vs lib/harness/measurement.rb in harness-0.7.0

- old
+ new

@@ -1,8 +1,8 @@ module Harness class Measurement - attr_accessor :id, :name, :source, :time, :value, :units + attr_accessor :id, :name, :source, :time, :value, :units, :period def initialize(attributes = {}) attributes.each_pair do |name, value| send "#{name}=", value end @@ -33,10 +33,11 @@ :id => id, :name => name, :source => source, :time => time, :units => units, - :value => value + :value => value, + :period => period } end end end