Class: Ambling::Stock::Settings::NumberFormat
- Inherits:
-
Object
- Object
- Ambling::Stock::Settings::NumberFormat
- Includes:
- Base
- Defined in:
- lib/ambling/stock.rb
Overview
- ,
-
(separator) #
Defined Under Namespace
Classes: DigitsAfterDecimal, Letters
Constant Summary collapse
- VALUES =
[:decimal_separator,:thousand_separator,:digits_after_decimal,:letters]
Instance Attribute Summary collapse
-
#decimal_separator ⇒ Object
-
(separator) use “none” if you don’t want thousands to be separated #.
-
#digits_after_decimal ⇒ Object
- 2
-
(Number) the number of digits after decimal for percent values #.
-
#letters ⇒ Object
Returns the value of attribute letters.
-
#thousand_separator ⇒ Object
defines how many numbers should be left after comma #.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#decimal_separator ⇒ Object
-
(separator) use “none” if you don’t want thousands to be separated #
176 177 178 |
# File 'lib/ambling/stock.rb', line 176 def decimal_separator @decimal_separator end |
#digits_after_decimal ⇒ Object
- 2
-
(Number) the number of digits after decimal for percent values #
184 185 186 |
# File 'lib/ambling/stock.rb', line 184 def digits_after_decimal @digits_after_decimal end |
#letters ⇒ Object
Returns the value of attribute letters.
188 189 190 |
# File 'lib/ambling/stock.rb', line 188 def letters @letters end |
#thousand_separator ⇒ Object
defines how many numbers should be left after comma #
180 181 182 |
# File 'lib/ambling/stock.rb', line 180 def thousand_separator @thousand_separator end |