class Printaura::Image
Attributes
image_id[RW]
Public Class Methods
new(filename)
click to toggle source
# File lib/printaura/image.rb, line 7 def initialize(filename) if filename.is_a?(String) filename = File.new(filename) end result = Api.uploadimage({file: filename}) @image_id = result["results"]["image_id"] end