Class: SchwabRb::Orders::BaseInstrument
- Inherits:
-
Object
- Object
- SchwabRb::Orders::BaseInstrument
- Defined in:
- lib/schwab_rb/orders/instruments.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#asset_type ⇒ Object
readonly
Returns the value of attribute asset_type.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(asset_type, symbol) ⇒ BaseInstrument
constructor
A new instance of BaseInstrument.
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_type ⇒ Object (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 |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
22 23 24 |
# File 'lib/schwab_rb/orders/instruments.rb', line 22 def symbol @symbol end |