Class: TopStockMovers::CLI::Viewing_options
- Inherits:
-
Object
- Object
- TopStockMovers::CLI::Viewing_options
- Defined in:
- lib/top_stock_movers/cli.rb
Overview
This Viewing_options class is what is used to allow the program to view the 7 different sorting options from the website and is the information used to populate the first list selection. It also is what is used to provide the most relevant information and sorting options for the list_stocks method.
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sorter ⇒ Object
Returns the value of attribute sorter.
Class Method Summary collapse
Instance Attribute Details
#desc ⇒ Object
Returns the value of attribute desc.
14 15 16 |
# File 'lib/top_stock_movers/cli.rb', line 14 def desc @desc end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/top_stock_movers/cli.rb', line 14 def name @name end |
#sorter ⇒ Object
Returns the value of attribute sorter.
14 15 16 |
# File 'lib/top_stock_movers/cli.rb', line 14 def sorter @sorter end |
Class Method Details
.all ⇒ Object
18 19 20 |
# File 'lib/top_stock_movers/cli.rb', line 18 def self.all @@all end |