Class: SchwabRb::Orders::BaseInstrument

Inherits:
Object
  • Object
show all
Defined in:
lib/schwab_rb/orders/instruments.rb

Direct Known Subclasses

EquityInstrument, OptionInstrument

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asset_type, symbol) ⇒ BaseInstrument

Returns a new instance of BaseInstrument.



17
18
19
20
# File 'lib/schwab_rb/orders/instruments.rb', line 17

def initialize(asset_type, symbol)
  @asset_type = asset_type
  @symbol = symbol
end

Instance Attribute Details

#asset_typeObject (readonly)

Returns the value of attribute asset_type.



22
23
24
# File 'lib/schwab_rb/orders/instruments.rb', line 22

def asset_type
  @asset_type
end

#symbolObject (readonly)

Returns the value of attribute symbol.



22
23
24
# File 'lib/schwab_rb/orders/instruments.rb', line 22

def symbol
  @symbol
end