Class: TrelloCli::CLI::Card::Create

Inherits:
Object
  • Object
show all
Defined in:
lib/trello_cli/cli/card/create.rb

Instance Method Summary collapse

Constructor Details

#initializeCreate

Returns a new instance of Create.



6
7
8
# File 'lib/trello_cli/cli/card/create.rb', line 6

def initialize
  @options = {}
end

Instance Method Details

#runObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/trello_cli/cli/card/create.rb', line 10

def run
  option_parser.parse!

  card        = create_card
  name        = card.attributes[:name]
  description = card.attributes[:description]

  puts "Card Created."
  puts "Name        : #{name}"
  puts "Description : #{description}"
end