Class: Tradier::Security

Inherits:
Base
  • Object
show all
Defined in:
lib/tradier/security.rb

Instance Attribute Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/tradier/security.rb', line 5

def description
  @description
end

#exchangeObject (readonly)

Returns the value of attribute exchange.



5
6
7
# File 'lib/tradier/security.rb', line 5

def exchange
  @exchange
end

#sharesObject (readonly)

Returns the value of attribute shares.



5
6
7
# File 'lib/tradier/security.rb', line 5

def shares
  @shares
end

#symbolObject (readonly)

Returns the value of attribute symbol.



5
6
7
# File 'lib/tradier/security.rb', line 5

def symbol
  @symbol
end

#typeObject (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