Class: Ambling::Stock::Settings::Charts::Chart::Graphs::Graph::Legend
- Inherits:
-
Object
- Object
- Ambling::Stock::Settings::Charts::Chart::Graphs::Graph::Legend
- Includes:
- Base
- Defined in:
- lib/ambling/stock.rb
Defined Under Namespace
Classes: DigitsAfterDecimal
Constant Summary collapse
- VALUES =
[:date,:period,:date_comparing,:period_comparing,:comparing_only,:digits_after_decimal]
Instance Attribute Summary collapse
-
#comparing_only ⇒ Object
defines how many numbers should be displayed after comma #.
-
#date ⇒ Object
Returns the value of attribute date.
-
#date_comparing ⇒ Object
Returns the value of attribute date_comparing.
-
#digits_after_decimal ⇒ Object
- number_format.digits_after_decimal.data
-
(Number) number of digits after decimal #.
-
#period ⇒ Object
Returns the value of attribute period.
-
#period_comparing ⇒ Object
- false
-
(true / false) If you set this to true, this graph will not have legend entry, only comparing graphs will.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#comparing_only ⇒ Object
defines how many numbers should be displayed after comma #
1099 1100 1101 |
# File 'lib/ambling/stock.rb', line 1099 def comparing_only @comparing_only end |
#date ⇒ Object
Returns the value of attribute date.
1082 1083 1084 |
# File 'lib/ambling/stock.rb', line 1082 def date @date end |
#date_comparing ⇒ Object
Returns the value of attribute date_comparing.
1090 1091 1092 |
# File 'lib/ambling/stock.rb', line 1090 def date_comparing @date_comparing end |
#digits_after_decimal ⇒ Object
- number_format.digits_after_decimal.data
-
(Number) number of digits after decimal #
1103 1104 1105 |
# File 'lib/ambling/stock.rb', line 1103 def digits_after_decimal @digits_after_decimal end |
#period ⇒ Object
Returns the value of attribute period.
1086 1087 1088 |
# File 'lib/ambling/stock.rb', line 1086 def period @period end |
#period_comparing ⇒ Object
- false
-
(true / false) If you set this to true, this graph will not have legend
entry, only comparing graphs will. #
1095 1096 1097 |
# File 'lib/ambling/stock.rb', line 1095 def period_comparing @period_comparing end |