Class: AddProject
- Inherits:
-
Struct
- Object
- Struct
- AddProject
- Defined in:
- lib/commands/add_project.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
1 2 3 |
# File 'lib/commands/add_project.rb', line 1 def name @name end |
Instance Method Details
#call(name = name) ⇒ Object
2 3 4 |
# File 'lib/commands/add_project.rb', line 2 def call name = name Project.create(name: name) end |