Class: Gemgento::ProductAttributeOption
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Gemgento::ProductAttributeOption
- Defined in:
- app/models/gemgento/product_attribute_option.rb
Overview
Instance Method Summary collapse
-
#sync_local_to_magento ⇒ Void
Push local attribute option changes to magento.
Instance Method Details
#sync_local_to_magento ⇒ Void
Push local attribute option changes to magento.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'app/models/gemgento/product_attribute_option.rb', line 27 def sync_local_to_magento response = API::SOAP::Catalog::ProductAttribute.add_option(self, self.product_attribute) if response.success? self.sync_needed = false return true else errors.add(:base, response.body[:faultstring]) return false end end |