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

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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#decimal_separatorObject

(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_decimalObject

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

#lettersObject

Returns the value of attribute letters.



188
189
190
# File 'lib/ambling/stock.rb', line 188

def letters
  @letters
end

#thousand_separatorObject

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