module BitsDealer::Books

Constants

ALL_BOOKS
EXCHANGE_ORDER_BOOKS
PLACE_ORDER_BOOKS

Public Instance Methods

books() click to toggle source
# File lib/bits_dealer/commands/books.rb, line 16
def books
  table = Terminal::Table.new(
    :headings => [:name, :book],
    :rows => ALL_BOOKS.map{|book| [book.name, book.id] }
  )

  prompt.say table

  nil
end