Class: Bumpspark::Graph
- Inherits:
-
Object
- Object
- Bumpspark::Graph
- Includes:
- Formats::DataURI, Formats::PNG, Formats::String, Scale
- Defined in:
- lib/bumpspark/graph.rb
Constant Summary
Constants included from Formats::PNG
Formats::PNG::BLACK, Formats::PNG::GREY, Formats::PNG::HEADER, Formats::PNG::RED
Instance Attribute Summary collapse
-
#numbers ⇒ Object
readonly
Returns the value of attribute numbers.
-
#scale ⇒ Object
readonly
Returns the value of attribute scale.
Instance Method Summary collapse
-
#initialize(numbers, scale = 1) ⇒ Graph
constructor
A new instance of Graph.
Methods included from Formats::DataURI
Methods included from Formats::String
Methods included from Formats::PNG
Methods included from Scale
Constructor Details
#initialize(numbers, scale = 1) ⇒ Graph
Returns a new instance of Graph.
16 17 18 19 |
# File 'lib/bumpspark/graph.rb', line 16 def initialize(numbers, scale = 1) @numbers = numbers @scale = scale end |
Instance Attribute Details
#numbers ⇒ Object (readonly)
Returns the value of attribute numbers.
15 16 17 |
# File 'lib/bumpspark/graph.rb', line 15 def numbers @numbers end |
#scale ⇒ Object (readonly)
Returns the value of attribute scale.
15 16 17 |
# File 'lib/bumpspark/graph.rb', line 15 def scale @scale end |