Class: Etapper::API::Stock
- Inherits:
-
Object
- Object
- Etapper::API::Stock
- Defined in:
- lib/etapper/api/service.rb
Overview
Instance Attribute Summary collapse
-
#brokerageFee ⇒ Object
Returns the value of attribute brokerageFee.
-
#brokerName ⇒ Object
Returns the value of attribute brokerName.
-
#company ⇒ Object
Returns the value of attribute company.
-
#note ⇒ Object
Returns the value of attribute note.
-
#numberOfShares ⇒ Object
Returns the value of attribute numberOfShares.
-
#pricePerShare ⇒ Object
Returns the value of attribute pricePerShare.
-
#saleDate ⇒ Object
Returns the value of attribute saleDate.
-
#salePricePerShare ⇒ Object
Returns the value of attribute salePricePerShare.
-
#ticker ⇒ Object
Returns the value of attribute ticker.
Instance Method Summary collapse
-
#initialize(brokerName = nil, brokerageFee = nil, company = nil, note = nil, numberOfShares = nil, pricePerShare = nil, saleDate = nil, salePricePerShare = nil, ticker = nil) ⇒ Stock
constructor
A new instance of Stock.
Constructor Details
#initialize(brokerName = nil, brokerageFee = nil, company = nil, note = nil, numberOfShares = nil, pricePerShare = nil, saleDate = nil, salePricePerShare = nil, ticker = nil) ⇒ Stock
Returns a new instance of Stock.
698 699 700 701 702 703 704 705 706 707 708 |
# File 'lib/etapper/api/service.rb', line 698 def initialize(brokerName = nil, brokerageFee = nil, company = nil, note = nil, numberOfShares = nil, pricePerShare = nil, saleDate = nil, salePricePerShare = nil, ticker = nil) @brokerName = brokerName @brokerageFee = brokerageFee @company = company @note = note @numberOfShares = numberOfShares @pricePerShare = pricePerShare @saleDate = saleDate @salePricePerShare = salePricePerShare @ticker = ticker end |
Instance Attribute Details
#brokerageFee ⇒ Object
Returns the value of attribute brokerageFee.
689 690 691 |
# File 'lib/etapper/api/service.rb', line 689 def brokerageFee @brokerageFee end |
#brokerName ⇒ Object
Returns the value of attribute brokerName.
688 689 690 |
# File 'lib/etapper/api/service.rb', line 688 def brokerName @brokerName end |
#company ⇒ Object
Returns the value of attribute company.
690 691 692 |
# File 'lib/etapper/api/service.rb', line 690 def company @company end |
#note ⇒ Object
Returns the value of attribute note.
691 692 693 |
# File 'lib/etapper/api/service.rb', line 691 def note @note end |
#numberOfShares ⇒ Object
Returns the value of attribute numberOfShares.
692 693 694 |
# File 'lib/etapper/api/service.rb', line 692 def numberOfShares @numberOfShares end |
#pricePerShare ⇒ Object
Returns the value of attribute pricePerShare.
693 694 695 |
# File 'lib/etapper/api/service.rb', line 693 def pricePerShare @pricePerShare end |
#saleDate ⇒ Object
Returns the value of attribute saleDate.
694 695 696 |
# File 'lib/etapper/api/service.rb', line 694 def saleDate @saleDate end |
#salePricePerShare ⇒ Object
Returns the value of attribute salePricePerShare.
695 696 697 |
# File 'lib/etapper/api/service.rb', line 695 def salePricePerShare @salePricePerShare end |
#ticker ⇒ Object
Returns the value of attribute ticker.
696 697 698 |
# File 'lib/etapper/api/service.rb', line 696 def ticker @ticker end |