lib/ig_markets/cli/main.rb
def print_deal_confirmation_profit_loss(deal_confirmation)
          return unless deal_confirmation.profit

          puts "Profit/loss: #{Format.colored_currency deal_confirmation.profit, deal_confirmation.profit_currency}"
        end
# Prints out the profit/loss for the passed deal confirmation if applicable.
Prints out the profit/loss for the passed deal confirmation if applicable.
Prints out the profit / loss for the passed deal confirmation if applicable .
def print_deal_confirmation_profit_loss(deal_confirmation)
          return unless deal_confirmation.profit
          puts "Profit/loss: #{Format.colored_currency deal_confirmation.profit, deal_confirmation.profit_currency}"
        end
def print_deal_confirmation_profit_loss ( deal_confirmation ) return unless deal_confirmation . profit puts "Profit/loss: #{Format.colored_currency deal_confirmation.profit, deal_confirmation.profit_currency}" end
Prints out the profit/loss for the passed deal confirmation if applicable.
Prints out the profit / loss for the passed deal confirmation if applicable .
deal_confirmation