Class: Tr3llo::Command::Card::ShowCommand
- Inherits:
-
Object
- Object
- Tr3llo::Command::Card::ShowCommand
- Defined in:
- lib/3llo/commands/card/show.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(card_id) ⇒ ShowCommand
constructor
A new instance of ShowCommand.
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
#execute ⇒ Object
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 |