Class: Sankey::ImageData

Inherits:
Object
  • Object
show all
Defined in:
lib/imagedata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#heightObject (readonly)

Returns the value of attribute height.



3
4
5
# File 'lib/imagedata.rb', line 3

def height
  @height
end

#verticesObject (readonly)

Returns the value of attribute vertices.



3
4
5
# File 'lib/imagedata.rb', line 3

def vertices
  @vertices
end

#widthObject (readonly)

Returns the value of attribute width.



3
4
5
# File 'lib/imagedata.rb', line 3

def width
  @width
end