Class: EditProperty
- Inherits:
-
Struct
- Object
- Struct
- EditProperty
- Defined in:
- lib/commands/edit_property.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#metric_name ⇒ Object
Returns the value of attribute metric_name.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #call(project = project, metric_name = metric_name, value = value, author = author) ⇒ Object
- #project(project_name = project_name) ⇒ Object
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
1 2 3 |
# File 'lib/commands/edit_property.rb', line 1 def @author end |
#metric_name ⇒ Object
Returns the value of attribute metric_name
1 2 3 |
# File 'lib/commands/edit_property.rb', line 1 def metric_name @metric_name end |
#project_name ⇒ Object
Returns the value of attribute project_name
1 2 3 |
# File 'lib/commands/edit_property.rb', line 1 def project_name @project_name end |
#value ⇒ Object
Returns the value of attribute value
1 2 3 |
# File 'lib/commands/edit_property.rb', line 1 def value @value end |
Instance Method Details
#call(project = project, metric_name = metric_name, value = value, author = author) ⇒ Object
2 3 4 |
# File 'lib/commands/edit_property.rb', line 2 def call project = project, metric_name = metric_name, value = value, = project.edit_property(metric_name, value, ) end |
#project(project_name = project_name) ⇒ Object
6 7 8 |
# File 'lib/commands/edit_property.rb', line 6 def project project_name = project_name Project.find_by(name: project_name) end |