Class: Spree::DataFeeds::Google::OptionalSubAttributes

Inherits:
Object
  • Object
show all
Includes:
ServiceModule::Base
Defined in:
app/services/spree/data_feeds/google/optional_sub_attributes.rb

Instance Method Summary collapse

Methods included from ServiceModule::Base

prepended

Instance Method Details

#call(input) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'app/services/spree/data_feeds/google/optional_sub_attributes.rb', line 7

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