Class: Commission::OptionsHouse
Instance Attribute Summary
Attributes inherited from Commission
#contracts, #shares
Instance Method Summary
collapse
Methods inherited from Commission
#initialize
#process_args
Constructor Details
This class inherits a constructor from Commission
Instance Method Details
#option_assignment ⇒ Object
33
34
35
|
# File 'lib/commission.rb', line 33
def option_assignment
contracts.zero? ? 0 : 5_00
end
|
#option_entry ⇒ Object
25
26
27
|
# File 'lib/commission.rb', line 25
def option_entry
contracts.zero? ? 0 : 8_50 + (contracts * 15)
end
|
#stock_entry ⇒ Object
29
30
31
|
# File 'lib/commission.rb', line 29
def stock_entry
shares.zero? ? 0 : 2_95
end
|