Class: Ambling::Stock::Settings::PeriodSelector

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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#buttonObject

#FFFFFF

(hex code) #



1341
1342
1343
# File 'lib/ambling/stock.rb', line 1341

def button
  @button
end

#custom_period_enabledObject

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_titleObject

(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

#enabledObject

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

#fromObject

(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

#inputObject

#FFFFFF

() #



1345
1346
1347
# File 'lib/ambling/stock.rb', line 1345

def input
  @input
end

#periodsObject

Returns the value of attribute periods.



1349
1350
1351
# File 'lib/ambling/stock.rb', line 1349

def periods
  @periods
end

#periods_titleObject

(text) #



1357
1358
1359
# File 'lib/ambling/stock.rb', line 1357

def periods_title
  @periods_title
end

#positionObject

text_size

(Number) #



1329
1330
1331
# File 'lib/ambling/stock.rb', line 1329

def position
  @position
end

#text_colorObject

Returns the value of attribute text_color.



1337
1338
1339
# File 'lib/ambling/stock.rb', line 1337

def text_color
  @text_color
end

#text_sizeObject

text_color

(hex code) #



1333
1334
1335
# File 'lib/ambling/stock.rb', line 1333

def text_size
  @text_size
end

#toObject

Returns the value of attribute to.



1371
1372
1373
# File 'lib/ambling/stock.rb', line 1371

def to
  @to
end

#zoom_to_endObject

(text) #



1353
1354
1355
# File 'lib/ambling/stock.rb', line 1353

def zoom_to_end
  @zoom_to_end
end