Sha256: e0d550236e8d26415c7fb702510507ded6444f9bb3a509cd56d23b0038b256c8

Contents?: true

Size: 1.46 KB

Versions: 36

Compression:

Stored size: 1.46 KB

Contents

# frozen_string_literal: true

require 'logger'

module Cryptum
  module UI
    # This plugin is used to Display Order Execute Details
    # selected from the Order Execute Window Pane.
    module OrderExecuteDetails
      # Supported Method Parameters::
      # Cryptum::UI::OrderExecuteDetails.refresh(
      # )

      public_class_method def self.refresh(opts = {})
        option_choice = opts[:option_choice]
        event_history = opts[:event_history]
        order_execute_details_win = opts[:order_execute_details_win]
        indicator_status = opts[:indicator_status]
        key_press_event = opts[:key_press_event]

        color = :white

        # UI
        col_just4 = (Curses.cols - Cryptum::UI.col_fourth) - 1

        # ROW 1
        # COLUMN 1
        out_line_no = 0
        order_execute_details_win.setpos(out_line_no, Cryptum::UI.col_first)
        order_execute_details_win.clrtoeol
        Cryptum::UI.colorize(
          ui_win: order_execute_details_win,
          color: :white,
          style: :bold,
          string: 'Order Details'
        )

        order_execute_details_win.refresh
      rescue Interrupt
        # Exit Gracefully if CTRL+C is Pressed During Session
        Cryptum.exit_gracefully(which_self: self)
      rescue StandardError => e
        raise e
      end

      # Display Usage for this Module

      public_class_method def self.help
        puts "USAGE:
         #{self}.refresh(
         )
        "
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
cryptum-0.0.304 lib/cryptum/order_execute_details.rb
cryptum-0.0.303 lib/cryptum/order_execute_details.rb
cryptum-0.0.302 lib/cryptum/order_execute_details.rb
cryptum-0.0.301 lib/cryptum/order_execute_details.rb
cryptum-0.0.300 lib/cryptum/order_execute_details.rb
cryptum-0.0.299 lib/cryptum/order_execute_details.rb
cryptum-0.0.298 lib/cryptum/order_execute_details.rb
cryptum-0.0.297 lib/cryptum/order_execute_details.rb
cryptum-0.0.296 lib/cryptum/order_execute_details.rb
cryptum-0.0.295 lib/cryptum/order_execute_details.rb
cryptum-0.0.294 lib/cryptum/order_execute_details.rb
cryptum-0.0.293 lib/cryptum/order_execute_details.rb
cryptum-0.0.291 lib/cryptum/order_execute_details.rb
cryptum-0.0.290 lib/cryptum/order_execute_details.rb
cryptum-0.0.289 lib/cryptum/order_execute_details.rb
cryptum-0.0.288 lib/cryptum/order_execute_details.rb
cryptum-0.0.287 lib/cryptum/order_execute_details.rb
cryptum-0.0.286 lib/cryptum/order_execute_details.rb
cryptum-0.0.285 lib/cryptum/order_execute_details.rb
cryptum-0.0.284 lib/cryptum/order_execute_details.rb