Class: Rupee::Put

Inherits:
Option show all
Defined in:
lib/rupee/option.rb

Overview

The same thing as Rupee::Option, but with the :type flag set to "put"

Instance Attribute Summary

Attributes inherited from Option

#div_yield, #price, #rate, #strike, #time, #type, #underlying, #volatility

Instance Method Summary collapse

Methods inherited from Option

black76, #black_scholes, black_scholes, charm, color, delta, dual_delta, dual_gamma, dvega_dtime, gamma, generalized_black_scholes, implied_volatility, rho, speed, theta, vanna, vega, vomma, zomma

Methods inherited from Security

attr_alias

Constructor Details

#initialize(opts = {}) ⇒ Put

:nodoc:



52
53
54
55
# File 'lib/rupee/option.rb', line 52

def initialize(opts = {}) # :nodoc:
  @type = :put
  super
end