Class: Termplot::WidgetDSL::TimeSeriesConfig
- Inherits:
-
WidgetConfig
- Object
- WidgetConfig
- Termplot::WidgetDSL::TimeSeriesConfig
- Defined in:
- lib/termplot/dsl/widgets.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#line_style ⇒ Object
readonly
Returns the value of attribute line_style.
Attributes inherited from WidgetConfig
#col, #cols, #command, #debug, #interval, #row, #rows, #title
Instance Method Summary collapse
Methods inherited from WidgetConfig
#flatten, #initialize, #positioned_widget, #producer_options, #set_dimensions
Constructor Details
This class inherits a constructor from Termplot::WidgetDSL::WidgetConfig
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
82 83 84 |
# File 'lib/termplot/dsl/widgets.rb', line 82 def color @color end |
#line_style ⇒ Object (readonly)
Returns the value of attribute line_style.
82 83 84 |
# File 'lib/termplot/dsl/widgets.rb', line 82 def line_style @line_style end |
Instance Method Details
#post_initialize(opts) ⇒ Object
83 84 85 86 |
# File 'lib/termplot/dsl/widgets.rb', line 83 def post_initialize(opts) @color = opts[:color] @line_style = opts[:line_style] end |
#widget ⇒ Object
88 89 90 91 92 93 94 95 96 97 |
# File 'lib/termplot/dsl/widgets.rb', line 88 def @widget ||= Termplot::Widgets::TimeSeriesWidget.new( title: title, line_style: line_style, color: color, cols: cols, rows: rows, debug: debug ) end |