Class: Trackplot::Components::Funnel
- Defined in:
- lib/trackplot/components/funnel.rb
Instance Attribute Summary collapse
-
#data_key ⇒ Object
readonly
Returns the value of attribute data_key.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data_key, **options) ⇒ Funnel
constructor
A new instance of Funnel.
- #to_config ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(data_key, **options) ⇒ Funnel
Returns a new instance of Funnel.
6 7 8 9 |
# File 'lib/trackplot/components/funnel.rb', line 6 def initialize(data_key, **) @data_key = data_key super(**) end |
Instance Attribute Details
#data_key ⇒ Object (readonly)
Returns the value of attribute data_key.
4 5 6 |
# File 'lib/trackplot/components/funnel.rb', line 4 def data_key @data_key end |
Instance Method Details
#to_config ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/trackplot/components/funnel.rb', line 11 def to_config { type: "funnel", data_key: data_key, label_key: [:label_key] }.compact end |