Class: Sankey::ImageData
- Inherits:
-
Object
- Object
- Sankey::ImageData
- Defined in:
- lib/imagedata.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#vertices ⇒ Object
readonly
Returns the value of attribute vertices.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(vertices, width, height) ⇒ ImageData
constructor
A new instance of ImageData.
Constructor Details
#initialize(vertices, width, height) ⇒ ImageData
Returns a new instance of ImageData.
5 6 7 8 9 |
# File 'lib/imagedata.rb', line 5 def initialize(vertices, width, height) @vertices = vertices @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
3 4 5 |
# File 'lib/imagedata.rb', line 3 def height @height end |
#vertices ⇒ Object (readonly)
Returns the value of attribute vertices.
3 4 5 |
# File 'lib/imagedata.rb', line 3 def vertices @vertices end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
3 4 5 |
# File 'lib/imagedata.rb', line 3 def width @width end |