Method: Gruff::Base#to_blob

Defined in:
lib/gruff/base.rb

#to_blob(fileformat = 'PNG') ⇒ Object

Return the graph as a rendered binary blob.



327
328
329
330
331
332
# File 'lib/gruff/base.rb', line 327

def to_blob(fileformat='PNG')
  draw()
  return @base_image.to_blob do
    self.format = fileformat
  end
end