Class: Quby::Compiler::Entities::Charting::Plottable

Inherits:
Struct
  • Object
show all
Defined in:
lib/quby/compiler/entities/charting/plottable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, options = {}) ⇒ Plottable

Returns a new instance of Plottable.



8
9
10
11
12
13
14
15
# File 'lib/quby/compiler/entities/charting/plottable.rb', line 8

def initialize(key, options = {})
  key         = key
  label       = options[:label]
  plotted_key = options.fetch(:plotted_key) { :value }
  global      = options[:global]
  questionnaire_key = options[:questionnaire_key]
  super(key, label, plotted_key, questionnaire_key, global)
end

Instance Attribute Details

#globalObject

Returns the value of attribute global

Returns:

  • (Object)

    the current value of global



7
8
9
# File 'lib/quby/compiler/entities/charting/plottable.rb', line 7

def global
  @global
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



7
8
9
# File 'lib/quby/compiler/entities/charting/plottable.rb', line 7

def key
  @key
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



7
8
9
# File 'lib/quby/compiler/entities/charting/plottable.rb', line 7

def label
  @label
end

#plotted_keyObject

Returns the value of attribute plotted_key

Returns:

  • (Object)

    the current value of plotted_key



7
8
9
# File 'lib/quby/compiler/entities/charting/plottable.rb', line 7

def plotted_key
  @plotted_key
end

#questionnaire_keyObject

Returns the value of attribute questionnaire_key

Returns:

  • (Object)

    the current value of questionnaire_key



7
8
9
# File 'lib/quby/compiler/entities/charting/plottable.rb', line 7

def questionnaire_key
  @questionnaire_key
end