Class: MercadoBitcoin::Console::Commands::Account::Withdraw
- Inherits:
-
Base
- Object
- CmdParse::Command
- Base
- MercadoBitcoin::Console::Commands::Account::Withdraw
- Defined in:
- lib/mercado_bitcoin/console/commands/account/withdraw.rb
Defined Under Namespace
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
command_classes, #execute, inherited, #initialize, long_desc, short_desc, take_commands, #take_commands
Constructor Details
This class inherits a constructor from MercadoBitcoin::Console::Commands::Base
Instance Method Details
#after_initialize ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/mercado_bitcoin/console/commands/account/withdraw.rb', line 4 def after_initialize add_command(Get.new(console)) add_command(BTC.new(console)) add_command(BRL.new(console)) add_command(LTC.new(console)) do |opts| opts.on("--description [DESCRIPTION]", "Texto livre para auxiliar o usuário a relacionar a retirada/saque com atividades externas.") do |v| console.[:description] = v end end end |