Class: Commission::OptionsHouseAlt

Inherits:
OptionsHouse show all
Defined in:
lib/commission.rb

Instance Attribute Summary

Attributes inherited from Commission

#contracts, #shares

Instance Method Summary collapse

Methods inherited from OptionsHouse

#option_assignment, #stock_entry

Methods inherited from Commission

#initialize

Methods included from ArgumentProcessor

#process_args

Constructor Details

This class inherits a constructor from Commission

Instance Method Details

#option_entryObject



39
40
41
42
43
# File 'lib/commission.rb', line 39

def option_entry
  return 0 if contracts.zero?

  contracts <= 5 ? 5_00 : contracts * 1_00
end