Class: Ambling::Stock::Settings::DataReloading

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/stock.rb

Overview

0

(Number) In case you want chart’s data to be reloaded at some interval, set number bigger then 0 here. Data will be reloaded every x seconds. Note, you can also trigger data reload using javascript function #

Constant Summary collapse

VALUES =
[:interval,:show_preloader,:reset_period]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#intervalObject

true

(true / false) if set to true, preloader and “processing data” text will be

displayed while reloading and processing data #


157
158
159
# File 'lib/ambling/stock.rb', line 157

def interval
  @interval
end

#reset_periodObject

Returns the value of attribute reset_period.



166
167
168
# File 'lib/ambling/stock.rb', line 166

def reset_period
  @reset_period
end

#show_preloaderObject

false

(true / false) if set to true, after every reload default time period (defined in

<period_selector>) will be selected. Otherwise currently selected period will remain. #


162
163
164
# File 'lib/ambling/stock.rb', line 162

def show_preloader
  @show_preloader
end