Module: Coinbot::Event::KeyPress
- Defined in:
- lib/coinbot/event/key_press.rb
Class Method Summary collapse
-
.detect(opts = {}) ⇒ Object
- Supported Method Parameters
-
Coinbot::Event::KeyPress.detect( ).
-
.help ⇒ Object
Display Usage for this Module.
Class Method Details
.detect(opts = {}) ⇒ Object
- Supported Method Parameters
-
Coinbot::Event::KeyPress.detect( )
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/coinbot/event/key_press.rb', line 10 public_class_method def self.detect(opts = {}) terminal_win = opts[:terminal_win] Coinbot::UI.detect_key_press_in_ui( key_press_event: terminal_win.key_press_event, ui_win: terminal_win.ticker_section ) Coinbot::UI.detect_key_press_in_ui( key_press_event: terminal_win.key_press_event, ui_win: terminal_win.candle_section ) # Coinbot::UI.detect_key_press_in_ui( # key_press_event: terminal_win.key_press_event, # ui_win: terminal_win.summary_section # ) Coinbot::UI.detect_key_press_in_ui( key_press_event: terminal_win.key_press_event, ui_win: terminal_win.portfolio_section ) Coinbot::UI.detect_key_press_in_ui( key_press_event: terminal_win.key_press_event, ui_win: terminal_win.status_section ) Coinbot::UI.detect_key_press_in_ui( key_press_event: terminal_win.key_press_event, ui_win: terminal_win.probability_section ) Coinbot::UI.detect_key_press_in_ui( key_press_event: terminal_win.key_press_event, ui_win: terminal_win.command_section ) rescue StandardError => e raise e end |
.help ⇒ Object
Display Usage for this Module
52 53 54 55 56 |
# File 'lib/coinbot/event/key_press.rb', line 52 public_class_method def self.help puts "USAGE: order_book = #{self}.crypto() " end |