Sha256: 214a57e0e5d38f70c44d01fee2d5dcaf65eb1e81a2607467891ed7952007b8c8

Contents?: true

Size: 228 Bytes

Versions: 10

Compression:

Stored size: 228 Bytes

Contents

class Project
  def add_metric metric
    metrics << metric
    self
  end

  def edit_property name, value, user
    property(name).edit value, user
    self
  end

  def property name
    metrics.find_by(name: name)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
techcor-0.0.10 lib/project.rb
techcor-0.0.9 lib/project.rb
techcor-0.0.8 lib/project.rb
techcor-0.0.7 lib/project.rb
techcor-0.0.6 lib/project.rb
techcor-0.0.5 lib/project.rb
techcor-0.0.4 lib/project.rb
techcor-0.0.3 lib/project.rb
techcor-0.0.2 lib/project.rb
techcor-0.0.1 lib/project.rb