Class: ShopifyAPI::Image
- Defined in:
- lib/shopify_api.rb
Instance Method Summary collapse
Methods included from Countable
Instance Method Details
#attach_image(data, filename = nil) ⇒ Object
320 321 322 323 |
# File 'lib/shopify_api.rb', line 320 def attach_image(data, filename = nil) attributes['attachment'] = Base64.encode64(data) attributes['filename'] = filename unless filename.nil? end |