Sha256: c3ecbb955c20c8ad19749e4b113b212d46d1cba0504f4450b1999ddf258f4f14

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 Bytes

Contents

class Metric

  def edit value, user
    values << PropertyValue.new(value: convert(value), created_by: user)
    self
  end

  def value
    values.last.try :value
  end

  def last_updated_by
    values.last.try :created_by
  end

  def last_updated_at
    values.last.try :created_at
  end

  def convert value
    value
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
techcor-0.0.4 lib/metrics/metric.rb
techcor-0.0.3 lib/metrics/metric.rb
techcor-0.0.2 lib/metrics/metric.rb
techcor-0.0.1 lib/metrics/metric.rb