Class: MercadoBitcoin::Console::Commands::Order

Inherits:
Base
  • Object
show all
Defined in:
lib/mercado_bitcoin/console/commands/order.rb

Defined Under Namespace

Classes: Buy, Cancel, Get, List, Sell

Instance Attribute Summary

Attributes inherited from Base

#console

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_initializeObject



4
5
6
7
8
9
10
# File 'lib/mercado_bitcoin/console/commands/order.rb', line 4

def after_initialize
  add_command(List.new(console))
  add_command(Get.new(console))
  add_command(Cancel.new(console))
  add_command(Buy.new(console))
  add_command(Sell.new(console))
end