Class: Ambling::Stock::Settings::NumberFormat::DigitsAfterDecimal
- Inherits:
-
Object
- Object
- Ambling::Stock::Settings::NumberFormat::DigitsAfterDecimal
- Includes:
- Base
- Defined in:
- lib/ambling/stock.rb
Overview
- 2
-
(Number) the number of digits after decimal for percent values #
Constant Summary collapse
- VALUES =
[:percents,:data,:averages]
Instance Attribute Summary collapse
-
#averages ⇒ Object
Returns the value of attribute averages.
-
#data ⇒ Object
- 2
-
(Number) Then the number of series in the selected period exceeds <max_series>, you can show averages of the period.
-
#percents ⇒ Object
-
(Number) number of digits after decimal for values from data file.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#averages ⇒ Object
Returns the value of attribute averages.
209 210 211 |
# File 'lib/ambling/stock.rb', line 209 def averages @averages end |
#data ⇒ Object
- 2
-
(Number) Then the number of series in the selected period exceeds <max_series>, you
can show averages of the period. This setting sets the number of decimals for averages #
205 206 207 |
# File 'lib/ambling/stock.rb', line 205 def data @data end |
#percents ⇒ Object
-
(Number) number of digits after decimal for values from data file. In case you don’t
set any number here (this is default) then values from data file will not be rounded #
200 201 202 |
# File 'lib/ambling/stock.rb', line 200 def percents @percents end |