Class: Ambling::Data::XyGraph
- Inherits:
-
Object
- Object
- Ambling::Data::XyGraph
- Defined in:
- lib/ambling/data.rb
Overview
xy graphs contain points, not values I know I should abstract the BaseValueHolder to handle a generic array of Values. Unfortunately, I don’t have time right now
Instance Attribute Summary collapse
-
#points ⇒ Object
Returns the value of attribute points.
Instance Method Summary collapse
- #build_xml(builder) ⇒ Object
-
#initialize(data = []) ⇒ XyGraph
constructor
A new instance of XyGraph.
- #push(item) ⇒ Object (also: #<<)
Constructor Details
#initialize(data = []) ⇒ XyGraph
Returns a new instance of XyGraph.
129 130 131 |
# File 'lib/ambling/data.rb', line 129 def initialize(data = []) self.points = data end |
Instance Attribute Details
#points ⇒ Object
Returns the value of attribute points.
127 128 129 |
# File 'lib/ambling/data.rb', line 127 def points @points end |
Instance Method Details
#build_xml(builder) ⇒ Object
148 149 150 |
# File 'lib/ambling/data.rb', line 148 def build_xml(builder) @points.each { |point| point.build_xml(builder) } end |