Class: TopStockMovers::CLI::Viewing_options

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#descObject

Returns the value of attribute desc.



14
15
16
# File 'lib/top_stock_movers/cli.rb', line 14

def desc
  @desc
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/top_stock_movers/cli.rb', line 14

def name
  @name
end

#sorterObject

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

.allObject



18
19
20
# File 'lib/top_stock_movers/cli.rb', line 18

def self.all
  @@all
end