Class: Graph
- Inherits:
-
Object
- Object
- Graph
- Defined in:
- lib/autograph/graph.rb
Instance Attribute Summary collapse
-
#series ⇒ Object
readonly
Returns the value of attribute series.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Graph
constructor
A new instance of Graph.
Constructor Details
#initialize(options = {}) ⇒ Graph
Returns a new instance of Graph.
5 6 7 8 |
# File 'lib/autograph/graph.rb', line 5 def initialize(={}) @title = [:title] @series = [] end |
Instance Attribute Details
#series ⇒ Object (readonly)
Returns the value of attribute series.
3 4 5 |
# File 'lib/autograph/graph.rb', line 3 def series @series end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/autograph/graph.rb', line 2 def title @title end |