Class: Quby::Questionnaires::Entities::Charting::Plottable
- Inherits:
-
Struct
- Object
- Struct
- Quby::Questionnaires::Entities::Charting::Plottable
- Defined in:
- lib/quby/questionnaires/entities/charting/plottable.rb
Instance Attribute Summary collapse
-
#global ⇒ Object
Returns the value of attribute global.
-
#key ⇒ Object
Returns the value of attribute key.
-
#label ⇒ Object
Returns the value of attribute label.
-
#plotted_key ⇒ Object
Returns the value of attribute plotted_key.
-
#questionnaire_key ⇒ Object
Returns the value of attribute questionnaire_key.
Instance Method Summary collapse
-
#initialize(key, options = {}) ⇒ Plottable
constructor
A new instance of Plottable.
Constructor Details
#initialize(key, options = {}) ⇒ Plottable
Returns a new instance of Plottable.
8 9 10 11 12 13 14 15 |
# File 'lib/quby/questionnaires/entities/charting/plottable.rb', line 8 def initialize(key, = {}) key = key label = [:label] plotted_key = .fetch(:plotted_key) { :value } global = [:global] questionnaire_key = [:questionnaire_key] super(key, label, plotted_key, questionnaire_key, global) end |
Instance Attribute Details
#global ⇒ Object
Returns the value of attribute global
7 8 9 |
# File 'lib/quby/questionnaires/entities/charting/plottable.rb', line 7 def global @global end |
#key ⇒ Object
Returns the value of attribute key
7 8 9 |
# File 'lib/quby/questionnaires/entities/charting/plottable.rb', line 7 def key @key end |
#label ⇒ Object
Returns the value of attribute label
7 8 9 |
# File 'lib/quby/questionnaires/entities/charting/plottable.rb', line 7 def label @label end |
#plotted_key ⇒ Object
Returns the value of attribute plotted_key
7 8 9 |
# File 'lib/quby/questionnaires/entities/charting/plottable.rb', line 7 def plotted_key @plotted_key end |
#questionnaire_key ⇒ Object
Returns the value of attribute questionnaire_key
7 8 9 |
# File 'lib/quby/questionnaires/entities/charting/plottable.rb', line 7 def questionnaire_key @questionnaire_key end |