Sha256: f19a37e06fadacfb68f90e50f106f983f490a8cd9da4e5da54728e6a5a4ae6c7

Contents?: true

Size: 317 Bytes

Versions: 10

Compression:

Stored size: 317 Bytes

Contents

class EditProperty < Struct.new :project_name, :metric_name, :value, :author
  def call project = project, metric_name = metric_name, value = value, author = author
    project.edit_property(metric_name, value, author)
  end

  def project project_name = project_name
    Project.find_by(name: project_name)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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