Class: Highcharts::MainController
- Inherits:
-
Volt::ModelController
- Object
- Volt::ModelController
- Highcharts::MainController
- Defined in:
- app/highcharts/controllers/main_controller.rb
Instance Attribute Summary collapse
-
#chart ⇒ Object
readonly
Returns the value of attribute chart.
-
#reactive ⇒ Object
readonly
Returns the value of attribute reactive.
-
#watch_counts ⇒ Object
readonly
Returns the value of attribute watch_counts.
-
#watches ⇒ Object
readonly
Returns the value of attribute watches.
Instance Method Summary collapse
Instance Attribute Details
#chart ⇒ Object (readonly)
Returns the value of attribute chart.
9 10 11 |
# File 'app/highcharts/controllers/main_controller.rb', line 9 def chart @chart end |
#reactive ⇒ Object (readonly)
Returns the value of attribute reactive.
9 10 11 |
# File 'app/highcharts/controllers/main_controller.rb', line 9 def reactive @reactive end |
#watch_counts ⇒ Object (readonly)
Returns the value of attribute watch_counts.
9 10 11 |
# File 'app/highcharts/controllers/main_controller.rb', line 9 def watch_counts @watch_counts end |
#watches ⇒ Object (readonly)
Returns the value of attribute watches.
9 10 11 |
# File 'app/highcharts/controllers/main_controller.rb', line 9 def watches @watches end |
Instance Method Details
#before_index_remove ⇒ Object
17 18 19 20 21 |
# File 'app/highcharts/controllers/main_controller.rb', line 17 def before_index_remove stop_watching destroy_chart @chart = nil end |
#index_ready ⇒ Object
11 12 13 14 15 |
# File 'app/highcharts/controllers/main_controller.rb', line 11 def index_ready set_model create_chart start_watching end |