Class: Tradier::Security
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#exchange ⇒ Object
readonly
Returns the value of attribute exchange.
-
#shares ⇒ Object
readonly
Returns the value of attribute shares.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Base
#[], #attr_equal, attr_reader, #attrs, #attrs_equal, from_response, #initialize, #update
Constructor Details
This class inherits a constructor from Tradier::Base
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/tradier/security.rb', line 5 def description @description end |
#exchange ⇒ Object (readonly)
Returns the value of attribute exchange.
5 6 7 |
# File 'lib/tradier/security.rb', line 5 def exchange @exchange end |
#shares ⇒ Object (readonly)
Returns the value of attribute shares.
5 6 7 |
# File 'lib/tradier/security.rb', line 5 def shares @shares end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
5 6 7 |
# File 'lib/tradier/security.rb', line 5 def symbol @symbol end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/tradier/security.rb', line 5 def type @type end |
Instance Method Details
#==(quote) ⇒ Object
7 8 9 |
# File 'lib/tradier/security.rb', line 7 def ==(quote) self.symbol == quote.symbol end |