Class: Ambling::Stock::Settings::PeriodSelector
- Inherits:
-
Object
- Object
- Ambling::Stock::Settings::PeriodSelector
- Includes:
- Base
- Defined in:
- lib/ambling/stock.rb
Overview
- true
-
(true / false) whether to show period selector or not #
Defined Under Namespace
Classes: Button, Input, Periods
Constant Summary collapse
- VALUES =
[:enabled,:custom_period_enabled,:position,:text_size,:text_color,:button,:input,:periods,:zoom_to_end,:periods_title,:custom_period_title,:from,:to]
Instance Attribute Summary collapse
-
#button ⇒ Object
- #FFFFFF
-
(hex code) #.
-
#custom_period_enabled ⇒ Object
- bottom
-
(top / bottom) period selector position #.
-
#custom_period_title ⇒ Object
-
(date) You can set start date from which the chart will be shown when loaded (the selected predefined period will be ignored if the date is set here) #.
-
#enabled ⇒ Object
- true
-
(true / false) whether to show custom period input fields or not #.
-
#from ⇒ Object
-
(date) You can set end date util which the chart will be shown when loaded If you set “from” date and do not set “to” date, the last date of the data set will be used #.
-
#input ⇒ Object
- #FFFFFF
-
() #.
-
#periods ⇒ Object
Returns the value of attribute periods.
-
#periods_title ⇒ Object
-
(text) #.
-
#position ⇒ Object
- text_size
-
(Number) #.
-
#text_color ⇒ Object
Returns the value of attribute text_color.
-
#text_size ⇒ Object
- text_color
-
(hex code) #.
-
#to ⇒ Object
Returns the value of attribute to.
-
#zoom_to_end ⇒ Object
-
(text) #.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#button ⇒ Object
- #FFFFFF
-
(hex code) #
1341 1342 1343 |
# File 'lib/ambling/stock.rb', line 1341 def @button end |
#custom_period_enabled ⇒ Object
- bottom
-
(top / bottom) period selector position #
1325 1326 1327 |
# File 'lib/ambling/stock.rb', line 1325 def custom_period_enabled @custom_period_enabled end |
#custom_period_title ⇒ Object
-
(date) You can set start date from which the chart will be shown when loaded
(the selected predefined period will be ignored if the date is set here) #
1362 1363 1364 |
# File 'lib/ambling/stock.rb', line 1362 def custom_period_title @custom_period_title end |
#enabled ⇒ Object
- true
-
(true / false) whether to show custom period input fields or not #
1321 1322 1323 |
# File 'lib/ambling/stock.rb', line 1321 def enabled @enabled end |
#from ⇒ Object
-
(date) You can set end date util which the chart will be shown when loaded
If you set "from" date and do not set "to" date, the last date of the data set will be used #
1367 1368 1369 |
# File 'lib/ambling/stock.rb', line 1367 def from @from end |
#input ⇒ Object
- #FFFFFF
-
() #
1345 1346 1347 |
# File 'lib/ambling/stock.rb', line 1345 def input @input end |
#periods ⇒ Object
Returns the value of attribute periods.
1349 1350 1351 |
# File 'lib/ambling/stock.rb', line 1349 def periods @periods end |
#periods_title ⇒ Object
-
(text) #
1357 1358 1359 |
# File 'lib/ambling/stock.rb', line 1357 def periods_title @periods_title end |
#position ⇒ Object
- text_size
-
(Number) #
1329 1330 1331 |
# File 'lib/ambling/stock.rb', line 1329 def position @position end |
#text_color ⇒ Object
Returns the value of attribute text_color.
1337 1338 1339 |
# File 'lib/ambling/stock.rb', line 1337 def text_color @text_color end |
#text_size ⇒ Object
- text_color
-
(hex code) #
1333 1334 1335 |
# File 'lib/ambling/stock.rb', line 1333 def text_size @text_size end |
#to ⇒ Object
Returns the value of attribute to.
1371 1372 1373 |
# File 'lib/ambling/stock.rb', line 1371 def to @to end |
#zoom_to_end ⇒ Object
-
(text) #
1353 1354 1355 |
# File 'lib/ambling/stock.rb', line 1353 def zoom_to_end @zoom_to_end end |