class SpiffyStoresAPI::Image
Public Instance Methods
attach_image(data, filename = nil)
click to toggle source
# File lib/spiffy_stores_api/resources/image.rb, line 11 def attach_image(data, filename = nil) attributes['attachment'] = Base64.encode64(data) attributes['filename'] = filename unless filename.nil? end