class Flowlink::Product
Public Class Methods
fields()
click to toggle source
This is an abstract class defining the standard product fields for Flowlink
(and Wombat) as methods. It's intended use is as a super class for a specific distributor, where the methods take a hashable and return the value matching their namesake. These fields and their values are described here: support.wombat.co/hc/en-us/articles/202555810-Products
# File lib/flowlink_data/product.rb, line 12 def self.fields [ :id, :name, :sku, :description, :price, :cost_price, :available_on, :permalink, :meta_description, :meta_keywords, :shipping_category, :taxons, :options, :properties, :images, :variants ] end
Public Instance Methods
available_on()
click to toggle source
# File lib/flowlink_data/product.rb, line 57 def available_on raise NotImplementedError end
cost_price()
click to toggle source
# File lib/flowlink_data/product.rb, line 53 def cost_price raise NotImplementedError end
description()
click to toggle source
# File lib/flowlink_data/product.rb, line 45 def description raise NotImplementedError end
id()
click to toggle source
# File lib/flowlink_data/product.rb, line 33 def id raise NotImplementedError end
images()
click to toggle source
# File lib/flowlink_data/product.rb, line 89 def images raise NotImplementedError end
meta_description()
click to toggle source
# File lib/flowlink_data/product.rb, line 65 def meta_description raise NotImplementedError end
meta_keywords()
click to toggle source
# File lib/flowlink_data/product.rb, line 69 def meta_keywords raise NotImplementedError end
name()
click to toggle source
# File lib/flowlink_data/product.rb, line 37 def name raise NotImplementedError end
options()
click to toggle source
# File lib/flowlink_data/product.rb, line 81 def options raise NotImplementedError end
permalink()
click to toggle source
# File lib/flowlink_data/product.rb, line 61 def permalink raise NotImplementedError end
price()
click to toggle source
# File lib/flowlink_data/product.rb, line 49 def price raise NotImplementedError end
properties()
click to toggle source
# File lib/flowlink_data/product.rb, line 85 def properties raise NotImplementedError end
shipping_category()
click to toggle source
# File lib/flowlink_data/product.rb, line 73 def shipping_category raise NotImplementedError end
sku()
click to toggle source
# File lib/flowlink_data/product.rb, line 41 def sku raise NotImplementedError end
taxons()
click to toggle source
# File lib/flowlink_data/product.rb, line 77 def taxons raise NotImplementedError end
variants()
click to toggle source
# File lib/flowlink_data/product.rb, line 93 def variants raise NotImplementedError end