lib/simple_metrics/metric.rb in simple_metrics-0.3.2 vs lib/simple_metrics/metric.rb in simple_metrics-0.3.3
- old
+ new
@@ -1,8 +1,9 @@
module SimpleMetrics
class Metric
- attr_reader :id, :name, :total, :created_at, :updated_at
+ attr_reader :id, :name, :created_at, :updated_at
+ attr_accessor :total
def initialize(attributes)
@id = attributes[:id]
@name = attributes[:name]
@total = attributes[:total]
\ No newline at end of file