Class: MercadoBitcoin::Console::Commands::Account::Withdraw::BRL

Inherits:
BaseNoTakeCommand
  • Object
show all
Defined in:
lib/mercado_bitcoin/console/commands/account/withdraw/brl.rb

Instance Attribute Summary

Attributes inherited from Base

#console

Instance Method Summary collapse

Methods inherited from BaseNoTakeCommand

#take_commands

Methods inherited from Base

command_classes, 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_initializeObject



5
6
7
# File 'lib/mercado_bitcoin/console/commands/account/withdraw/brl.rb', line 5

def after_initialize
  argument_desc(quantity: 'Valor bruto do saque.', account_ref: 'ID de uma conta bancária já cadastrada e marcada como confiável')
end

#execute(quantity, account_ref) ⇒ Object



9
10
11
# File 'lib/mercado_bitcoin/console/commands/account/withdraw/brl.rb', line 9

def execute(quantity, )
  super(coin: 'brl', quantity: quantity, account_ref: )
end