Module: Tr3llo::Command::Card::SelfAssign

Extended by:
SelfAssign
Included in:
SelfAssign
Defined in:
lib/3llo/command/card/self_assign.rb

Instance Method Summary collapse

Instance Method Details

#execute(key, user_id) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/3llo/command/card/self_assign.rb', line 7

def execute(key, user_id)
  card_id = Entities.parse_id(:card, key)
  assert_card_id!(card_id, key)

  assign_card(card_id, user_id)

  interface = Application.fetch_interface!()

  interface.print_frame do
    interface.puts("Card has been assigned to yourself")
  end
end