Class: Ambling::Stock::Settings::NumberFormat::DigitsAfterDecimal

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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#averagesObject

Returns the value of attribute averages.



209
210
211
# File 'lib/ambling/stock.rb', line 209

def averages
  @averages
end

#dataObject

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

#percentsObject

(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