Class: RCharts::GraphHelper::Graph::Options
- Inherits:
-
Object
- Object
- RCharts::GraphHelper::Graph::Options
- Defined in:
- app/helpers/rcharts/graph_helper/graph/options.rb
Overview
:nodoc:
Constant Summary collapse
- DEFAULTS =
{ x: { 0 => { values_method: :keys } }, y: { 0 => { values_method: :values } } }.freeze
Instance Method Summary collapse
-
#initialize(keys, options) ⇒ Options
constructor
A new instance of Options.
- #to_h ⇒ Object
Constructor Details
#initialize(keys, options) ⇒ Options
Returns a new instance of Options.
9 10 11 12 |
# File 'app/helpers/rcharts/graph_helper/graph/options.rb', line 9 def initialize(keys, ) @keys = keys = end |
Instance Method Details
#to_h ⇒ Object
14 15 16 |
# File 'app/helpers/rcharts/graph_helper/graph/options.rb', line 14 def to_h(&) DEFAULTS.deep_merge().to_h(&) end |