Class: RubyTUI::Widgets::Dataset
- Inherits:
-
Data
- Object
- Data
- RubyTUI::Widgets::Dataset
- Defined in:
- lib/rubytui/widgets/chart.rb
Overview
Dataset represents a series of data points for the Chart widget.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
Instance Method Summary collapse
-
#initialize(name: "", data: [], style: Style::DEFAULT) ⇒ Dataset
constructor
A new instance of Dataset.
Constructor Details
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
6 7 8 |
# File 'lib/rubytui/widgets/chart.rb', line 6 def data @data end |
#name ⇒ Object (readonly)
Returns the value of attribute name
6 7 8 |
# File 'lib/rubytui/widgets/chart.rb', line 6 def name @name end |
#style ⇒ Object (readonly)
Returns the value of attribute style
6 7 8 |
# File 'lib/rubytui/widgets/chart.rb', line 6 def style @style end |