Class: AddProject

Inherits:
Struct
  • Object
show all
Defined in:
lib/commands/add_project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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