Sha256: f562fca2131f3915673c4649adecf9fad2c5a86a6bf250c60b858d031d907cff
Contents?: true
Size: 585 Bytes
Versions: 16
Compression:
Stored size: 585 Bytes
Contents
module Spree module DataFeeds module Google class OptionalSubAttributes prepend Spree::ServiceModule::Base def call(input) information = {} # This is a place where you can put attributes that have sub-attributes, example for shipping: # # information['shipping'] = {} # information['shipping']['price'] = calculate_shipping(input[:product]) # information['shipping']['country'] = input[:store].default_country success(information: information) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems