diff --git a/engines/dfc_provider/lib/dfc_provider/supplied_product.rb b/engines/dfc_provider/lib/dfc_provider/supplied_product.rb index 06b762ba87..dcaf35d9b5 100644 --- a/engines/dfc_provider/lib/dfc_provider/supplied_product.rb +++ b/engines/dfc_provider/lib/dfc_provider/supplied_product.rb @@ -3,15 +3,21 @@ module DfcProvider class SuppliedProduct < DataFoodConsortium::Connector::SuppliedProduct attr_accessor :spree_product_id + attr_accessor :image - def initialize(semantic_id, spree_product_id: nil, **properties) + def initialize(semantic_id, spree_product_id: nil, image_url: nil, **properties) super(semantic_id, **properties) self.spree_product_id = spree_product_id + self.image = image_url registerSemanticProperty("ofn:spree_product_id") do self.spree_product_id end + # Temporary solution, will be replaced by "dfc_b:image" in future version of the DFC connector + registerSemanticProperty("ofn:image") do + self.image + end end end end