Class: Tr3llo::Command::Card::ShowCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/3llo/commands/card/show.rb

Instance Method Summary collapse

Constructor Details

#initialize(card_id) ⇒ ShowCommand

Returns a new instance of ShowCommand.



5
6
7
# File 'lib/3llo/commands/card/show.rb', line 5

def initialize(card_id)
  @card_id = card_id
end

Instance Method Details

#executeObject



9
10
11
12
13
# File 'lib/3llo/commands/card/show.rb', line 9

def execute
  Tr3llo::Presenter::Card::ShowPresenter
    .new(interface)
    .print!(load_card)
end