Class: Commission::OptionsHouse

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

Direct Known Subclasses

OptionsHouseAlt

Instance Attribute Summary

Attributes inherited from Commission

#contracts, #shares

Instance Method Summary collapse

Methods inherited from Commission

#initialize

Methods included from ArgumentProcessor

#process_args

Constructor Details

This class inherits a constructor from Commission

Instance Method Details

#option_assignmentObject



33
34
35
# File 'lib/commission.rb', line 33

def option_assignment
  contracts.zero? ? 0 : 5_00
end

#option_entryObject



25
26
27
# File 'lib/commission.rb', line 25

def option_entry
  contracts.zero? ? 0 : 8_50 + (contracts * 15)
end

#stock_entryObject



29
30
31
# File 'lib/commission.rb', line 29

def stock_entry
  shares.zero? ? 0 : 2_95
end